{{-- The Monthly Outlets Rental Advise as it goes round: every outlet paying rent in the month with what is due on it, the totals struck at the foot, and the five sign-offs of clause 9.0. Shared by the browser print view and the dompdf export; $forPdf switches to a font dompdf embeds and trims the sizes. Landscape, because the line carries five money columns and an outlet name. --}} @php use App\Models\MonthlyRentalAdvice; use App\Support\Format; $forPdf = $forPdf ?? false; $logo = $forPdf ? public_path('img/gintell-logo.jpg') : asset('img/gintell-logo.jpg'); $logoExists = is_file(public_path('img/gintell-logo.jpg')); $date = fn ($value) => $value ? \Illuminate\Support\Carbon::parse($value)->format('d/m/Y') : ''; $steps = collect($stages)->flatMap(fn (array $stage) => $stage['steps']); @endphp
|
@if ($logoExists)
|
MONTHLY OUTLETS RENTAL ADVISE
MORA · Clause 9.0 — prepared on or before the 25th of the month
|
Month
{{ $advice->period_label }}
{{ $advice->reference }}
|
| # | Outlet | Landlord | Term | Base rent | Service | Promotion | Tax | Total (RM) |
|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} |
{{ $line->outlet }}
@if ($line->location)
{{ $line->location }}
@endif
|
{{ $line->landlord ?: '—' }} | {{ $line->rent_year_label }} | {{ Format::money($line->base_rent, 2, '') }} | {{ Format::money($line->service_charge, 2, '') }} | {{ Format::money($line->promotion_charge, 2, '') }} | {{ Format::money($line->tax_amount, 2, '') }} | {{ Format::money($line->total_amount, 2, '') }} |
| No outlet was paying rent in {{ $advice->period_label }}. | ||||||||
| {{ number_format($advice->outlet_count) }} outlets | {{ Format::money($advice->base_total, 2, '') }} | {{ Format::money($advice->service_total, 2, '') }} | {{ Format::money($advice->promotion_total, 2, '') }} | {{ Format::money($advice->tax_total, 2, '') }} | {{ Format::money($advice->total_amount, 2, '') }} | |||
|
Clause {{ $step['clause'] }}
{{ $step['owner_label'] }}
{{ $advice->{$prefix.'_by_name'} ?: '' }}
Date: {{ $date($advice->{$prefix.'_on'}) }}
|
@endforeach