@if ($data['notifications']->isEmpty())
{{ __('No notifications found.') }}
@else
@foreach ($data['notifications'] as $notification)
@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
{{ $notification->source }}
{{ $description }}
{{ $notification->notificationdate }}
@endforeach
@endif
@if ($data['notifications']->isNotEmpty())
{{ $data['notifications']->links('pagination::bootstrap-4') }}
@endif