{{-- resources/views/storefront/notifications.blade.php --}} @extends('storefront.layout') @section('title', trans_key('storefront.pageTitles.notifications').' - '.config('app.name', 'FreshMart')) @section('content')

Notifications

All recent storefront alerts.

@if($notifications->count()) @foreach($notifications as $notification) @php $isUnread = !($notification->read_at); @endphp
{{ $notification->title ?? data_get($notification->data, 'title', 'Notification') }} {{ optional($notification->created_at)->diffForHumans() }}

{{ $notification->message ?? data_get($notification->data, 'message') }}

@endforeach
{{ $notifications->withQueryString()->links('storefront.partials.pagination') }}
@else

No notifications

You are all caught up.

@endif
@endsection