@extends('layouts.app') @section('title', 'My Notifications') @section('page_title', 'My Notifications') @section('content')

Notifications

@if(auth()->user()->unreadNotifications()->where('type', '!=', 'admin')->count() > 0) @endif
@if($notifications->isEmpty()) @else
@foreach($notifications as $notification)
{{ $notification->title }} @if(!$notification->is_read) New @endif

{{ $notification->message }}

{{ $notification->created_at->diffForHumans() }}
@endforeach
@if($notifications->hasPages())
{{ $notifications->links() }}
@endif @endif
@endsection