⮝
@php if(Auth::check()){ $role = Auth::user()->role; if($role == 'user'){ @endphp
@php }else if($role == 'admin'){ @endphp
@php } } @endphp
Explore
about
contact
FAQ
@if(Auth::check()) @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) @if($note->status == 'unseen') @php $ide = Crypt::encrypt($note->id); @endphp
@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 @php $ide = Crypt::encrypt($note->id); @endphp
@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
@endif
@php if(Auth::check()){ $role = Auth::user()->role; if($role == 'user'){ @endphp
@php }else if($role == 'admin'){ @endphp
@php }else{ @endphp
log in
@php } }else{ @endphp
log in
@php } @endphp
@yield('content') @include('website.layouts.sidebar') @include('website.layouts.footer')