{{-- SMS Item - Card Design --}} @php $isSent = (bool) $notification->sent_at; @endphp
{{-- Header --}}
{{-- Icon --}}
{{-- Content --}}
{{-- Badges --}}
{{ __('SMS') }} @if($notification->notificationAutomation) {{ __('Automation') }} @endif @if(! $isSent) {{ __('Scheduled') }} @endif
{{-- Title --}} @if($notification->title)
{{ $notification->title }}
@endif {{-- Meta Info --}}
{{ __('To') }}: {{ $notification->receiver?->name ?? $notification->receiver?->fullname ?? __('Unknown') }} @if($notification->receiver?->phone_mobile) ({{ $notification->receiver->phone_mobile }}) @endif @if($notification->user) {{ __('By') }}: {{ $notification->user->fullname }} @endif
{{-- Timestamp --}}
{{ ($notification->sent_at ?? $notification->created_at)->format('d/m/y') }} {{ ($notification->sent_at ?? $notification->created_at)->format('H:i') }} @if($notification->scheduled_at && !$isSent) {{ $notification->scheduled_at->format('d/m H:i') }} @endif
{{-- Actions --}}
{{ __('Show preview') }}
{{-- Preview Content (Collapsible) --}}
{{ Str::limit($notification->content, 600) }}