@if($notifications->isNotEmpty())
@endif
@foreach($notifications as $notification)
@endforeach
@else
@if($readNotifications->isNotEmpty())
@endif
@foreach($readNotifications as $readNotification)
@php
$user = null;
if (!empty($readNotification->data['created_by'])) {
$user = \App\Models\User::find($readNotification->data['created_by']);
}
@endphp
@endforeach
{{-- --}}
@else