PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` @extends('layouts.app') @section('content')

Sales Report

@csrf
@if(count($sales)) @php $grand_payable = 0; $grand_paid = 0; @endphp @foreach($sales as $item) @php $total_paid = 0; foreach ($item->installments as $value) { $total_paid = $total_paid + $value->amount; } $grand_paid = $grand_paid + $total_paid + $item['paid']; $grand_payable = $grand_payable + $item->paid + $item->discount + $item->due_amount; @endphp @endforeach
SL Member Name & ID Plot Size Total Payable Total Paid
{{ $loop->index + 1 }} {{ $item->member->name}} ({{ $item->member->serial_id }}) {{ $item->plot->plot_size }} ({{ $item->plot->face }}) {{ $item->paid + $item->due_amount }} {{ $total_paid + $item['paid']}}
Total {{ $grand_payable }} {{ $grand_paid }}
@else
No Data Found!
@endif {{-- --}}
@endsection @section('footer-script') @endsection