@extends('backend.layouts.snappy-pdf') @section('content')

Bhatiary Golf &Country Club

Dhaka Cantonment, Dhaka

Collection Report of Locker {{$report_type}} {{!empty($member->full_name)? 'for '.$member->full_name.'(membership no: '.$member->membership_no.')':""}}

@php $from_date = request()->from_date?date('d-m-Y',strtotime(request()->from_date)):date('d-m-Y'); $to_date = request()->to_date?date('d-m-Y',strtotime(request()->to_date)):date('d-m-Y'); $date_str = ($from_date!=$to_date) ? "From ".$from_date." to ".$to_date : "On ".$from_date; @endphp

{{ $date_str }}

@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
{{ $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