@extends('admin.layouts.master') @section('title', 'ECO') @section('content')
Filter
@php $user = Auth::user(); $isTelecaller = $user->user_type == 2; $isManager = $user->designation == 'Manager'; $NotTelecaller = 1; if ($isTelecaller && !$isManager) { $NotTelecaller = 0; } @endphp
@php if($NotTelecaller){ @endphp
@php }else{@endphp @php } @endphp

ECO (Locality Wise)

@forelse($report as $row) @empty @endforelse
Locality Total Customers Billed Customers Amount Conversion %
{{ $row['locality'] }} {{ $row['total_customers'] }} {{ $row['billed_customers'] }} ₹ {{ number_format($row['amount'],2) }} @if($row['total_customers'] > 0) {{ round(($row['billed_customers'] / $row['total_customers']) * 100, 2) }} % @else 0 % @endif
No records found
Total {{ collect($report)->sum('total_customers') }} {{ collect($report)->sum('billed_customers') }} ₹ {{ number_format(collect($report)->sum('amount'),2) }} @php $totalCustomers = collect($report)->sum('total_customers'); $totalBilled = collect($report)->sum('billed_customers'); @endphp @if($totalCustomers > 0) {{ round(($totalBilled / $totalCustomers) * 100, 2) }} % @else 0 % @endif
@endsection