@extends('layouts.app') @section('title', $pageTitle) @section('content')
Sending bulk SMS...
{{ $pageTitle }}

{{ $isCustom ? 'Review lockers by how long they have been expired' : 'Locker expiry notifications' }}

@if($registrations->where('can_send_email', true)->count() > 0) @endif @if($registrations->where('can_send_whatsapp', true)->count() > 0) @endif
@if($registrations->count() > 0)
{{ $registrations->count() }}
Total Lockers
{{ $registrations->where('can_send_email', true)->count() }}
Email Ready
{{ $registrations->where('can_send_whatsapp', true)->count() }}
WhatsApp Ready
@endif
@if($isCustom)
Reset

Leave the maximum empty for no age limit. Example: minimum 366 with no maximum shows every locker expired for more than one year.

@endif @if($registrations->count() > 0)
@foreach($registrations as $index => $expiry) @endforeach
S.No Client Information Expiry Details Phone Email Locker Details
{{ $index + 1 }} {{ $expiry->registration?->client?->name ?? 'N/A' }} {{ $expiry->end_date ? \Carbon\Carbon::parse($expiry->end_date)->format('d M Y') : 'N/A' }} {{ $expiry->registration?->client?->phone ?? 'N/A' }} {{ $expiry->registration?->client?->email ?? 'N/A' }} {{ $expiry->locker_number ?: ($expiry->locker?->locker_number ?? 'N/A') }}
@else

{{ $isCustom ? 'No Expired Lockers Found' : 'No Lockers Expiring Within ' . $days . ' Days' }}

@if($isCustom) @if($days === null) No lockers have been expired for {{ $minDays }} or more days. @else No lockers have been expired for between {{ $minDays }} and {{ $days }} days. @endif @else No active locker contracts expire between today and the next {{ $days }} days. @endif

@endif
@endsection @push('scripts') @endpush