{{ __('dashboard.show_model', ['model' => __('messages.models.notification')]) }}
@php
$data = is_array($firstNotification->data)
? $firstNotification->data
: json_decode($firstNotification->data, true);
$locale = app()->getLocale();
@endphp
{{-- Title --}}
{{-- Body --}}
{{-- Receivers --}}
{{ $data['title'][$locale] ?? '--' }}
{{ $data['body'][$locale] ?? '--' }}
{{-- Receivers --}}
{{ __('dashboard.receivers') }}
-
@foreach($users as $user)
- {{ $user->name }} @php $read = $relatedNotifications->firstWhere('notifiable_id', $user->id)->read_at; @endphp @if($read) {{ __('dashboard.read') }} @else {{ __('dashboard.unread') }} @endif @endforeach