@extends('admin.layouts.app') @push('libraries_top') @endpush @section('content')

{{ $pageTitle }}

@php $unreadNotificationsIds = []; if(!empty($unreadNotifications) and count($unreadNotifications)) { $unreadNotificationsIds=$unreadNotifications->pluck('id')->toArray(); } @endphp
@can('admin_notifications_send') @endcan
@foreach($notifications as $notification) @endforeach
{{ trans('admin/main.title') }} {{ trans('notification.sender') }} {{ trans('site.message') }} {{ trans('admin/main.type') }} {{ trans('admin/main.status') }} {{ trans('admin/main.created_at') }} {{ trans('public.controls') }}
{{ $notification->title }} {{ $notification->sender }} {{ trans('admin/main.notification_'.$notification->type) }} @if(in_array($notification->id,$unreadNotificationsIds)) {{ trans('admin/main.unread') }} @else {{ trans('admin/main.read') }} @endif {{ dateTimeFormat($notification->created_at,'j M Y | H:i') }} @can('admin_notifications_delete') @include('admin.includes.delete_button',['url' => getAdminPanelUrl().'/notifications/'. $notification->id.'/delete','btnClass' => '']) @endcan
@endsection @push('scripts_bottom') @endpush