! $isMine,
'bg-gray-900 text-white rounded-tl-lg rounded-tr-lg rounded-bl-lg' => $isMine,
])
>
{{-- Delete button --}}
@if ($isMine)
@endif
{{-- Message text --}}
@if($actsForThisPlace && $actingUser)
Sent by {{ $actingUser->getSearchNameAttribute() }}
{{-- Attachments carousel --}}
@if ($msg->attachments->isNotEmpty())
@endif
{{-- Timestamp --}}
@php
// Determine status for *your* messages only
$status = 'sent';
if ($msg->receipts->contains(fn($r) => $r->status === \App\Enums\Chat\ReceiptStatus::READ)) {
$status = 'read';
} elseif ($msg->receipts->contains(fn($r) => $r->status === \App\Enums\Chat\ReceiptStatus::DELIVERED)) {
$status = 'delivered';
}
@endphp
@if ($isMine)
{{-- timestamp --}}
{{ $msg->created_at->format('H:i') }}
{{-- status ticks --}}
@if($status === 'sent')
{{-- single gray check --}}
@elseif($status === 'delivered')
{{-- double gray checks overlapped --}}
@else {{-- read --}}
{{-- double blue checks overlapped --}}
@endif
@else
{{-- keep non-mine timestamp as before --}}
{{ $msg->created_at->format('H:i') }}