@extends('layouts.app') @php use App\Models\Permission; use App\Support\AgeingBucket; use App\Support\Format; @endphp @section('title', 'Dashboard') @section('heading', 'Tenancy Ageing dashboard') @section('subheading', 'As at '.now()->format('d M Y')) @section('actions') @can(Permission::REPORT_VIEW) Ageing report @endcan @include('partials.export-buttons') @endsection @section('content') {{-- The one-click ageing buttons, counted cumulatively --}} @include('partials.ageing-buttons', [ 'bucketCounts' => $cumulativeCounts, 'totalVisible' => $total, 'target' => 'tenancies.index', 'showMode' => false, ])
| Outlet | Region | Expiry | Stage |
|---|---|---|---|
|
{{ $tenancy->outlet }}
{{ $tenancy->location }}
|
{{ $tenancy->region?->code }} |
{{ $tenancy->display_expiry }}
{{ Format::countdown($tenancy->days_to_expiry, '') }}
|
{{ $tenancy->renewal_stage_label ?? '—' }} |
| Nothing expires in the next three months. | |||
| Outlet | Region | Expired | Status |
|---|---|---|---|
|
{{ $tenancy->outlet }}
{{ $tenancy->location }}
|
{{ $tenancy->region?->code }} |
{{ $tenancy->display_expiry }}
{{ Format::countdown($tenancy->days_to_expiry, '') }}
|
{{ $tenancy->status_label }} |
| Nothing is past its expiry date. | |||