@if( auth()->user()->role_id == 1 || auth()->user()->role_id == 2 )
@if(count($result) > 0)
@foreach($result as $item)
{{str_limit(ucfirst($item->subject),40)}}
{!! ucfirst(strip_tags((str_limit($item->text,190)))) !!}
@if( strtotime($item->end_date) > strtotime(date('Y-m-d')) )
Active
@else
Expired
@endif
@if( auth()->user()->role_id == 1 || $item->created_by == auth()->user()->id )
@endif
@endforeach
@else
You have not a notifications
@endif
@endif
@if( auth()->user()->role_id == 4 || auth()->user()->role_id == 5 )
@if(count($result) > 0)
@foreach($result as $item)
{{str_limit(ucfirst($item->subject),40)}}
{!! ucfirst(strip_tags((str_limit($item->text,190)))) !!}
@endforeach
@else
You have not a notifications
@endif
@endif