{{-- Sinistre Message tracking method 1: HTML Comment --}}

{{ $sinistreMessage->subject }}

De: {{ $fromUser->fullName() }} ({{ $fromUser->email }})

Sinistre: #{{ $sinistre->id }} - {{ $sinistre->vehicle->numberplate ?? 'N/A' }}

{!! $sinistreMessage->message !!}
@if($sinistreMessage->attachments && count($sinistreMessage->attachments) > 0)

Pièces jointes:

@foreach($sinistreMessage->attachments as $attachment)

📎 {{ $attachment['original_name'] }} ({{ round($attachment['size'] / 1024, 1) }} KB)

@endforeach
@endif

Détails du sinistre:

Date d'accident: {{ $sinistre->date_of_accident ? \Carbon\Carbon::parse($sinistre->date_of_accident)->format('d/m/Y H:i') : 'N/A' }}

Véhicule: {{ $sinistre->vehicle->mark ?? '' }} {{ $sinistre->vehicle->model ?? '' }} - {{ $sinistre->vehicle->numberplate ?? 'N/A' }}

Conducteur: {{ $sinistre->driver->fullName() ?? 'N/A' }}

Adresse: {{ $sinistre->address ?? 'N/A' }}

© {{ date('Y') }} {{ config('app.name') }}. Tous droits réservés.

{{-- Sinistre Message tracking method 2: Hidden DIV with tracking data --}}
[SinistreMessage:{{ $sinistreMessage->tracking_code }}|From:{{ $sinistreMessage->from_user_id }}|To:{{ $sinistreMessage->vendor_id }}]
{{-- Sinistre Message tracking method 3: Invisible text tracking --}}
{{ $trackingInfo }}
{{-- Tracking pixel for open detection --}}