@php
$userRole = DB::table('users')
->where('username', Session('username'))
->value('idroles');
$currentUser = Session('username');
@endphp
@forelse($notifs as $notif)
@php
$isReadArray = is_array($notif->is_read) ? $notif->is_read : json_decode($notif->is_read, true);
$isRead = in_array($currentUser, $isReadArray ?? []);
@endphp