@extends('layouts.user') @section('user-content') @if(auth()->check()) @php if(session('seen_notifications')==null) session(['seen_notifications'=>0]); $notifications=auth()->user()->notifications()->orderBy('created_at','DESC')->paginate(); $unreadNotifications=auth()->user()->unreadNotifications()->count(); @endphp @endif @if(is_countable($notifications) && count($notifications)==0)
لا توجد اشعارات على حسابك حتى الآن
@else
{{$notifications->links()}}
@endif @endsection