@if($user) @include('layout.notification') @endif @foreach ($notificationTypes as $type => $id)
@if(!empty($notifications[$type]) && count($notifications[$type]) > 0) @foreach ($notifications[$type] as $notification) @php $notificationBackground = match($notification->type) { 'info' => 'bg-primary', 'warning' => 'bg-warning', default => 'bg-danger', }; @endphp
{{ Str::limit($notification->title, 50) }} @if($notification->attachment) @endif
{{ formatDate($notification->created_at,"dt","default") }}
@if($notification->is_read == 0) @endif
@endforeach @else
No data found.
@endif
@endforeach
View All