@use('app\Helpers\Helpers') @extends('frontend.layout.master') @section('title', 'Notifications') @section('breadcrumb') @endsection @section('content')
@includeIf('frontend.account.sidebar')

{{ __('frontend::static.account.notifications') }}

@csrf {{ __('frontend::static.account.mark_as_all_read') }}
    @php $notifications = auth()->user()->notifications?->paginate(); @endphp @forelse ($notifications as $notification)
  • {{ __('frontend::static.account.reminder') }}
    {{ $notification->created_at->diffForHumans() }}

    {{ $notification->data['message'] }}

  • @empty
    {{-- --}}

    {{ __('frontend::static.account.notifications_not_found') }}

    @endforelse
@if(count($notifications ?? [])) @if($notifications?->lastPage() > 1)
    {!! $notifications?->links() !!}
@endif @endif
@endsection @push('js') @endpush