@extends('layouts.dashboard')
@section('title', trans('dashboard.notifications_page_title'))
@section('header_title', trans('dashboard.notifications_header'))
@section('content')
{{-- Header --}}
{{ trans('dashboard.notifications_header') }}
@if($unreadCount > 0)
{{ $unreadCount }} {{ trans('dashboard.unread') }}
@endif
@if($unreadCount > 0)
@endif
{{-- Notifications List --}}
@forelse($notifications as $notif)
{{-- Type Icon --}}
{{-- Content --}}
{{ $notif->title() }}
{{ $notif->message() }}
{{ $notif->created_at->diffForHumans() }}
@if(!$notif->is_read)
@endif
@empty
{{ trans('dashboard.no_notifications') }}
{{ trans('dashboard.no_notifications_sub') }}
@endforelse
@if($notifications->hasPages())
{{ $notifications->links() }}
@endif
@endsection