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