Dear {{ $user ? $user->name : "" }},

This is a friendly reminder that the following agreement(s) are set to expire within a month. Please take necessary action to renew or terminate them in time.

@foreach ($agreements as $agreement)

Agreement Code: {{ $agreement->code }}

Agreement Type: {{ $agreement->agreement_type }}

Facility: {{ $agreement->facility ? $agreement->facility->name : "" }}

Facility Type: @php $badgeMap = [ 'plant' => ['label' => 'Plant', 'color' => '#db4243'], 'building' => ['label' => 'Plant Building', 'color' => '#e08465'], 'plant_mcc' => ['label' => 'Plant Collection Point', 'color' => '#eb7aa0'], 'ao' => ['label' => 'Area Office', 'color' => '#28A745'], 'dp' => ['label' => 'Dispatch Point', 'color' => '#20C997'], 'mcc' => ['label' => 'Collection Center', 'color' => '#007bff'], 'ao_building' => ['label' => 'Area Office Building', 'color' => '#008080'], ]; $type = $agreement->type ?? 'unknown'; $badge = $badgeMap[$type] ?? null; @endphp @if ($badge) {{ $badge['label'] }} @else N/A @endif

Start Date: {{ \Carbon\Carbon::parse($agreement->start_date)->format('d-M-Y') }}

End Date: {{ \Carbon\Carbon::parse($agreement->end_date)->format('d-M-Y') }}

Status: Expiring Soon

@endforeach

You can review the agreements and take action via the portal.

Regards,
FFL MCAS Team