@extends('components.dashboard.layouts.master') @section('title', __('dashboard.show_model', ['model' => __('messages.models.notification')])) @section('content')

{{ __('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 --}}
{{ $data['title'][$locale] ?? '--' }}
{{-- Body --}}
{{ $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
@endsection