@foreach($full_records as $key => $records) @foreach($records as $k => $r) @php $cus=\App\Models\Customer::where('customer_id',$key)->where('center_id',$center->id)->first(); @endphp @if($cus)
{{$center->center_name}}
S.No: {{$loop->index+1}}
----
{{$key}} - {{$cus->customer_name}}
பால் பணம் பட்டுவாடா
Code: {{$key}}

{{$k}}-({{date('d-m-Y',strtotime($from_date))}} to {{date('d-m-Y',strtotime($to_date))}})
@php $overall_total=0; $overall_qty_mrng=0; $overall_qty_eve=0; $overall_amt_mrng=0; $overall_amt_eve=0; @endphp @foreach($r as $d=>$m) @php $m_qty=isset($m['morning']['Qty'])?$m['morning']['Qty']:0; $e_qty=isset($m['evening']['Qty'])?$m['evening']['Qty']:0; $m_amt=isset($m['morning']['Amount'])?$m['morning']['Amount']:0; $e_amt=isset($m['evening']['Amount'])?$m['evening']['Amount']:0; $total=$m_amt+$e_amt; $overall_total+= $total; $overall_qty_mrng+=$m_qty; $overall_qty_eve+=$e_qty; $overall_amt_mrng+=$m_amt; $overall_amt_eve+=$e_amt; @endphp @if($m['morning']) @else @endif @if($m['evening']) @else @endif @endforeach
Date Morning Evening Total
QtyFATSNFRateAmount QtyFATSNFRateAmount
{{date('d-m-Y',strtotime($d))}}{{$m['morning']['Qty']}}{{$m['morning']['Fat']}}{{$m['morning']['SNF']}}{{$m['morning']['Rate']}}{{$m['morning']['Amount']}}----------{{$m['evening']['Qty']}}{{$m['evening']['Fat']}}{{$m['evening']['SNF']}}{{$m['evening']['Rate']}}{{$m['evening']['Amount']}}----------{{$total}}
{{$overall_qty_mrng}}{{$overall_amt_mrng}} {{$overall_qty_eve}}{{$overall_amt_eve}} {{$overall_total}}
Account No: {{$cus->account_number}} Bank: {{$cus->bank_name}},{{$cus->branch}}
பால் பணம்
{{$overall_total}}

@endif @endforeach @endforeach