Collection Report of Subscription {{!empty($member->full_name)? 'for '.$member->full_name.'(M No: '.$member->membership_no.')':""}} From {{ request()->from_date?request()->from_date:date('Y-m-d') }} To {{ request()->to_date?request()->to_date:date('Y-m-d') }}
| Sr. No. |
Receipt No. |
Mem No |
Mem Name |
Payment Date |
Months |
Total |
Payment Reference |
Action |
@php
$all_mode_total_collection = 0;
$all_mode_names = "";
@endphp
@foreach($collections as $collection)
|
| {{ $collection['mode'] }} |
@php $all_mode_names .= $all_mode_names? "+ ".$collection['mode']." ":$collection['mode']." "; @endphp
@php
$total_monthly_sub = 0;
$total_dependent = 0;
$total_locker_fee = 0;
$total_collection = 0;
$total_grand = 0;
$serial = 1;
@endphp
@if(count($collection['data']) > 0)
@foreach($collection['data'] as $payment)
| {{ $serial }} |
{{ sprintf('%06d', $payment->id) }} |
{{ $payment->member->membership_no }} |
{{ $payment->member->full_name }} |
{{ date('d-M-Y h:i:s a',strtotime($payment->created_at)) }} |
{{getRanges($payment->time_range)}}
|
{{ number_format($payment->total_paid, 2) }} |
{{ $payment->payment_reference }} |
|
@php
$total_collection += $payment->total_paid;
$serial++;
@endphp
@endforeach
@endif
| Total = |
{{ number_format($total_collection, 2) }} |
|
|
@php $all_mode_total_collection += $total_collection; @endphp
@endforeach
|
| [ {{$all_mode_names}} ] Total = |
{{ number_format($all_mode_total_collection, 2) }} |
|
|