@extends('app.master') @section('title',$title) @section('breadcrumb') @include('app.layouts.rent.breadcrumb',[ 'pageTitle' => $title, 'lists' => [ [ 'link' => '#', 'name' => 'Rent Reports', ], [ 'link' => 'rent.reports.statement', 'name' => 'Statement', ] ] ]) @endsection @php $totals = $arrears = [] @endphp @section('content')
| Sl. | Name | House | Contract | Area (S.F) | Rent Per S.F | @foreach($collections as $head => $name) @php $totals[$head] = $arrears[$head] = 0; @endphp{{ $name }} | @if(in_array($head, $hasArrear))Arrear of {{ $name }} | @endif @endforeachGross | @foreach($deductions as $head => $name) @php $totals[$head] = $arrears[$head] = 0; @endphp{{ $name }} | @if(in_array($head, $hasArrear))Arrear of {{ $name }} | @endif @endforeachTotal Deduction | Net Payable |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $loop->index+1 }} | {{ $rent->tenant_name }} | {{ $rent->house }} | {{ $rent->contract_start }} | {{ $rent->contract_end }} | {{ $rent->sf }} | {{ $rent->ppsf }} | @foreach($collections as $head => $name) @php $gross += $rent->heads->$head->total; $totalGross += $rent->heads->$head->total; $totals[$head] += $rent->heads->$head->amount; $arrears[$head] += $rent->heads->$head->arrear; @endphp{{ $rent->heads->$head->amount }} | @if(in_array($head, $hasArrear)){{ $rent->heads->$head->arrear }} | @endif @endforeach{{ number_format($gross,2) }} | @foreach($deductions as $head => $name) @php $deduction += $rent->heads->$head->total; $gross -= $rent->heads->$head->total; $totalDeduction += $rent->heads->$head->total; $totals[$head] += $rent->heads->$head->amount; $arrears[$head] += $rent->heads->$head->arrear; @endphp{{ $rent->heads->$head->amount }} | @if(in_array($head, $hasArrear)){{ $rent->heads->$head->arrear }} | @endif @endforeach{{ number_format($deduction,2) }} | {{ number_format($gross,2) }} |
| Sl. | Name | House | Contract | Area (S.F) | Rent Per S.F | @foreach($collections as $head => $name){{ number_format($totals[$head],2) }} | @if(in_array($head, $hasArrear)){{ number_format($arrears[$head],2) }} | @endif @endforeach{{ number_format($totalGross,2) }} | @foreach($deductions as $head => $name){{ number_format($totals[$head],2) }} | @if(in_array($head, $hasArrear)){{ number_format($arrears[$head],2) }} | @endif @endforeach{{ number_format($totalDeduction,2) }} | {{ number_format($totalGross - $totalDeduction,2) }} |