@php function checkIs($id,$field) { return DB::table('notification_status')->where('mail_id',$id)->where('user_id',Auth::user()->id)->where($field, '1')->count(); } @endphp @if(count($notification)>0) @php $i = 0; @endphp @foreach($notification as $key=>$item) @php $checkIsDeleted = checkIs($item->id, 'is_delete'); $checkIsRead = checkIs($item->id, 'is_read'); @endphp @if($checkIsDeleted==0) @php $i++; @endphp @endif @endforeach @if($i==0) @endif @else @endif
{{$item->regarding}} {{$item->subject}} @if(date("Y-m-d",strtotime($item->created_at)) == date('Y-m-d')) {{ date("h:i A",strtotime($item->created_at))}} @else @if(date("Y",strtotime($item->created_at)) == date('Y')) {{ date("M d ",strtotime($item->created_at))}} @else {{date("Y-m-d",strtotime($item->created_at))}} @endif @endif

No notifications found!


No notifications found!