{{-- Customer Info --}}
@php $prefs = $notification->customer->notificationPreference; @endphp
Name{{ $notification->customer->full_name ?? 'N/A' }}
Email{{ $notification->customer->email ?? '—' }}
Phone{{ $notification->customer->phone_number ?? '—' }}
Preferred Language{{ strtoupper($notification->customer->preferred_language ?? 'EN') }}
Notification Channels
via_email ? 'checked' : '' }}>
Preferred Notification Language {{ strtoupper($prefs?->language ?? 'EN') }}
{{-- Claims --}}
@forelse($notification->claims ?? [] as $claim)
Claim # Status Created At
{{ $claim->claim_number }} {{ ucfirst($claim->status) }} {{ \Carbon\Carbon::parse($claim->created_at)->format('F j, Y') }}
@empty

No claims found.

@endforelse
{{-- Policies --}}
@forelse($notification->policies ?? [] as $policy)
Policy # Coverage Expires
{{ $policy->policy_number }} {{ $policy->coverage_type ?? '-' }} {{ \Carbon\Carbon::parse($policy->expiry_date)->format('F j, Y') }}
@empty

No policies found.

@endforelse
{{-- Claim Payments --}}
@forelse($notification->claimPayments ?? [] as $payment)
Amount Paid At Method
{{ number_format($payment->amount, 2) }} {{ \Carbon\Carbon::parse($payment->paid_at)->format('F j, Y') }} {{ $payment->method ?? '-' }}
@empty

No claim payments found.

@endforelse
{{-- Surveys --}}
@forelse($notification->surveyStatuses ?? [] as $survey)
Status Created At
{{ $survey->survey_status }} {{ \Carbon\Carbon::parse($survey->created_at)->format('F j, Y') }}
@empty

No survey records found.

@endforelse
{{-- Garage Discharges --}}
@forelse($notification->garageDischarges ?? [] as $garage)
Garage Discharged At
{{ $garage->garage_name }} {{ \Carbon\Carbon::parse($garage->discharge_date)->format('F j, Y') }}
@empty

No garage discharge data.

@endforelse
{{-- Work Orders --}}
@forelse($notification->workOrders ?? [] as $work)
Description Created At
{{ $work->description }} {{ \Carbon\Carbon::parse($work->created_at)->format('F j, Y') }}
@empty

No work orders found.

@endforelse