@extends('layouts.app') @php use App\Models\MonthlyRentalAdvice; use App\Models\Permission; use App\Support\Format; use App\Support\ProcedureProgress; $canManage = auth()->user()->hasPermission(Permission::MORA_MANAGE); // Step code => the column prefix that records it, so each row of the // procedure can carry its own pair of inputs. $prefixes = MonthlyRentalAdvice::STEPS; @endphp @section('title', 'Rental advice — '.$advice->period_label) @section('heading', 'Rental advice — '.$advice->period_label) @section('subheading', 'MORA · clause 9.0'.($advice->reference ? ' · '.$advice->reference : '')) @section('actions') Print PDF @if ($canManage && ! $advice->isLocked())
@endif All advices @endsection @section('content') @if ($errors->any())| Outlet | Landlord | Term | Base rent | Service | Promotion | Tax | Total (RM) |
|---|---|---|---|---|---|---|---|
|
{{ $line->outlet }}
@if ($line->location)
{{ $line->location }}
@endif
|
{{ $line->landlord ?: '—' }} | {{ $line->rent_year_label }} | {{ Format::money($line->base_rent) }} | {{ Format::money($line->service_charge) }} | {{ Format::money($line->promotion_charge) }} | {{ Format::money($line->tax_amount) }} | {{ Format::money($line->total_amount) }} |
| Total | {{ Format::money($advice->base_total) }} | {{ Format::money($advice->service_total) }} | {{ Format::money($advice->promotion_total) }} | {{ Format::money($advice->tax_total) }} | {{ Format::money($advice->total_amount) }} | ||