@extends('layouts.app') @php use App\Models\Permission; use App\Support\Format; use App\Support\ProcedureProgress; $canManage = auth()->user()->hasPermission(Permission::MORA_MANAGE); @endphp @section('title', 'Monthly rental advice') @section('heading', 'Monthly rental advice (MORA)') @section('subheading', 'Clause 9.0 โ€” what every outlet pays, month by month') @section('content') @if ($canManage)
@csrf
Drawn from the tenancy register โ€” every outlet paying rent that month, at the rent for the year of its term.
@error('period_year')
{{ $message }}
@enderror @error('period_month')
{{ $message }}
@enderror
@endif
Advices raised {{ $advices->total() }} in all
@if ($advices->isEmpty())
No advice has been raised yet. Clause 9.1 has the PTM prepare one on or before the 25th of each month.
@else
@foreach ($advices as $advice) @php($progress = $advice->progress()) @endforeach
Month Reference Outlets Total (RM) Where it stands  
{{ $advice->period_label }} {{ $advice->reference ?: 'โ€”' }} {{ number_format($advice->outlet_count) }} {{ Format::money($advice->total_amount) }} @if ($progress['complete']) Paid out @elseif ($progress['overdue'] > 0) {{ $progress['overdue'] }} overdue @else {{ $progress['done'] }} of {{ $progress['total'] }} signed @endif @if ($progress['next'])
{{ $progress['next']['owner_label'] }} ยท clause {{ $progress['next']['clause'] }}
@endif
@endif
@if ($advices->hasPages())
{{ $advices->links() }}
@endif @endsection