@extends('backend.layouts.app') @section('content')
{{--
--}}
From Date
To Date
Membership No
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') }}
@php $all_mode_total_collection = 0; $all_mode_names = ""; @endphp @foreach($collections as $collection) @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) @php $total_collection += $payment->total_paid; $serial++; @endphp @endforeach @endif @php $all_mode_total_collection += $total_collection; @endphp @endforeach
Sr. No. Receipt No. Mem No Mem Name Payment Date Months Total Payment Reference Action
{{ $collection['mode'] }}
{{ $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 }}
Total = {{ number_format($total_collection, 2) }}
[ {{$all_mode_names}} ] Total = {{ number_format($all_mode_total_collection, 2) }}
@endsection @section('before_body_end') @endsection