{{ $unit->property->property_name }},{{ $unit->unit_name }} |
{{ $lease->client->owners_name ?? 'N/A' }}
|
@foreach (['JAN', 'FEB', 'MAR', 'APR', 'MAY', 'JUN', 'JUL', 'AUG', 'SEP', 'OCT', 'NOV', 'DEC'] as $month)
@php
$monthNumber = date('n', strtotime($month));
$totalAmount = 0;
foreach ($lease->tax as $payment) {
if (
$payment->date->format('n') == $monthNumber &&
$payment->date->format('Y') == $year
) {
$totalAmount += is_numeric($payment->amount)
? $payment->amount
: 0;
}
}
@endphp
{{ number_format($totalAmount, 2) }} |
@endforeach
@endforeach
@endforeach