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