⮝
Explore
about
contact
FAQ
@php $notification = DB::table('notification')->where('user_id', Auth::user()->id )->orderBy('id','DESC')->get(); $users = DB::table('users')->get(); $notification_new = DB::table('notification')->where('user_id', Auth::user()->id )->where('status', 'unseen' )->orderBy('id','DESC')->get(); $notification_old = DB::table('notification')->where('user_id', Auth::user()->id )->where('status', 'seen' )->orderBy('id','DESC')->get(); @endphp
@if(count($notification_new) > 0)
@php echo count($notification_new); @endphp
@endif
Notifications
@foreach($notification as $note) @php $ide = Crypt::encrypt($note->id); @endphp @if($note->status == 'unseen')
@foreach($users as $user) @if($user->id == $note->sender_id)
@if(!empty($user->profile_image))
@else
@endif
@if(!empty($user->name)){{ $user->name}}@else {{ $user->email}} @endif @if(!empty($user->last_name)){{ $user->last_name}}@endif
{{ $note->notification_msg }}
@else @endif @endforeach
{{ $note->created_at }}
@else
@foreach($users as $user) @if($user->id == $note->sender_id)
@if(!empty($user->profile_image))
@else
@endif
@if(!empty($user->name)){{ $user->name}}@else {{ $user->email}} @endif @if(!empty($user->last_name)){{ $user->last_name}}@endif
{{ $note->notification_msg }}
@else @endif @endforeach
{{ $note->created_at}}
@endif @endforeach
@include('admin.layouts.sidebar') @yield('content') @include('admin.layouts.footer')