@extends('app.master') @section('title',$title) @section('breadcrumb') @include('app.layouts.rent.breadcrumb',[ 'pageTitle' => $title, 'lists' => [ [ 'link' => '#', 'name' => 'Rent Reports', ], [ 'link' => 'rent.reports.payment', 'name' => 'Utility Statement Summary', ] ] ]) @endsection @php $unique = uniqid(); $period = date('d F, Y',strtotime($from)).' To '.date('d F, Y',strtotime($to)); $fileName = str_replace(' ','_',$title).'_'.str_replace(' ','_',$period); $companyLogo = asset($company['company.logo']); $companyFooterLogo = getBase64($company['company.footerLogo']); @endphp @section('content')
| Month | Year | @foreach($utilityHeads as $head => $name){{ $name }} | @endforeach|
|---|---|---|---|
| Amount | Arrear | @endforeach||
| {{ $months[$month] }} | {{ $utility['year'] }} | @foreach($utilityHeads as $head => $name) @php $totals[$head]['amount'] += isset($utility['heads'][$head]) ? $utility['heads'][$head]['amount'] : 0; $totals[$head]['arrear'] += isset($utility['heads'][$head]) ? $utility['heads'][$head]['arrear'] : 0; @endphp{!! isset($utility['heads'][$head]) ? numberFormat($utility['heads'][$head]['amount']) : numberFormat(0) !!} | {!! isset($utility['heads'][$head]) ? numberFormat($utility['heads'][$head]['arrear']) : numberFormat(0) !!} | @endforeach{!! text('Total') !!} | @foreach($utilityHeads as $head => $name){!! numberFormat($totals[$head]['amount']) !!} | {!! numberFormat($totals[$head]['arrear']) !!} | @endforeach