@include('user.partials.sidebar')
@if($data['notifications']->isEmpty())
@else
@foreach($data['notifications'] as $notification)
@endforeach
@endif
{{__('All Notifications')}}
{{__('No notifications found.')}}
@php
if($data['auth_user']==$notification->from_user_id || $data['auth_user']==$notification->to_user_id){
$profileimage=$notification->from_profileimg;
} else{
$profileimage=$notification->to_profileimg;
}
if($data['auth_user']==$notification->from_user_id) {
$description=$notification->from_description;
} else {
$description=$notification->to_description;
}
@endphp
@if (file_exists(public_path('storage/profile/' . $profileimage)) && $profileimage)
@else
@endif
@endif
{{ $notification->source }}
{{ $description }}
{{ $notification->notificationdate }}
{{ $data['notifications']->links('pagination::bootstrap-4') }}