@php(
$headerOption = \App\Http\Controllers\Controller::getHeaderOptions(
$title ?? '',
$subTitle ?? '',
isset($filters) ? $filters : [],
isset($advancedFilters) ? $advancedFilters : []
)
)
@php($headingOptions = [
'
'. ((request()->has('search_text') && request()->input('search_text')) ? '' : '') .'
',
''
])
@extends('admin.layouts.layout', $headerOption)
@section('content')
| Type |
Notification |
Time |
Actions |
@php($rows = (isset($notifications) && method_exists($notifications,'items')) ? $notifications->items() : ($notifications ?? []))
@if(!empty($rows))
@foreach($rows as $n)
@php(
$isRead = (int)($n->status ?? 0) === 1
)
@php(
$isPinned = (int)($n->pinned ?? 0) === 1
)
@php(
$dotClass = $isRead ? 'bg-secondary' : 'bg-success'
)
@php(
$rowClass = $isPinned ? 'bg-warning bg-opacity-10' : ''
)
@php(
$pinIcon = $isPinned ? 'bxs-pin' : 'bx-pin'
)
@php(
$url = $n->redirect_url ?? '#'
)
{{ $n->title ?? 'Notification' }}
|
{{ $n->message ?? '' }}
|
{{ \Carbon\Carbon::parse($n->created_at)->format('F j, Y \a\t g:i A') }}
|
|
@endforeach
@else
| No Notifications |
@endif
@include('admin.components.pagination', ['data' => $notifications])
@endsection
@push('page_script')
@endpush