@extends('layouts.app') @section('title', 'Renewal Documents') @section('content')
Document lifecycle control
Track expiring passports, visas, Emirates IDs, permits and company documents. Update document status, assign owners and schedule customer reminders with a complete audit trail.
{{ $label }}
{{ number_format($count) }}
@endforeachOpen a record to edit its document status, pipeline stage and reminder schedule.
| Renewal / Entity | Document | Expiry | Document Status | Next Reminder | Pipeline | Owner | Action |
|---|---|---|---|---|---|---|---|
| {{ $opportunity->renewal_number }}{{ $opportunity->customer?->full_name_en ?? $opportunity->corporateEmployee?->full_name ?? $opportunity->company?->name_en ?? $opportunity->employee?->full_name ?? auth()->user()->tenant->company_name }} | {{ str($opportunity->document_type)->replace('_',' ')->title() }}{{ $opportunity->document_number ?: 'No document number' }} | {{ $opportunity->expiry_date->format('d M Y') }}{{ $days < 0 ? abs($days).' days overdue' : $days.' days remaining' }} | {{ str($opportunity->document_status)->replace('_',' ')->title() }}{{ $opportunity->reminder_enabled ? 'Reminder enabled' : 'Reminder disabled' }} | {{ $opportunity->next_reminder_at?->format('d M, h:i A') ?? 'Not scheduled' }}{{ $opportunity->reminder_channel ? str($opportunity->reminder_channel)->replace('_',' ')->title() : 'Automatic rules active' }} | {{ str($opportunity->status)->replace('_',' ')->title() }} | {{ $opportunity->assignedUser?->name ?? 'Unassigned' }}{{ str($opportunity->entity_type)->replace('_',' ')->title() }} | Manage Renewal |
RNNo renewal opportunities yet Run the expiry scan after adding documents with expiry dates. | |||||||
{{ number_format($reminderCount) }} total reminder log entries
{{ $opportunities->links() }}