@extends('admin.layouts.master') @section('title', 'Customer Ledger') @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

Customer Ledger (Locality Wise)

@forelse($customers as $key => $row) @empty @endforelse
Sl.No Customer Locality Last 3 Months Avg Last Month Current Month Outstanding
{{ $key + 1 }} {{ $row->name }}
{{ $row->mobile }}
{{ $row->locality }} ₹ {{ number_format($row->avg_3_month ?? 0, 2) }} ₹ {{ number_format($row->last_month ?? 0, 2) }} ₹ {{ number_format($row->current_month ?? 0, 2) }} @if(($row->outstanding ?? 0) > 0) ₹ {{ number_format($row->outstanding, 2) }} @else ₹ 0.00 @endif
No records found
Total ₹ {{ number_format(collect($customers)->sum('avg_3_month'), 2) }} ₹ {{ number_format(collect($customers)->sum('last_month'), 2) }} ₹ {{ number_format(collect($customers)->sum('current_month'), 2) }} ₹ {{ number_format(collect($customers)->sum('outstanding'), 2) }}
@endsection