@extends('layouts.main.app') @section('head') @include('layouts.main.headersection',[ 'title'=> __('Notifications'), 'buttons'=>[ [ 'name'=>' '.__('Create Notification'), 'url'=>'#', 'components'=>'data-toggle="modal" data-target="#addRecord" id="add_record"', 'is_button'=>true ] ] ]) @endsection @section('content')
{{ $totalNotifications }}

{{ __('Total Notifications') }}

{{ $readNotifications }}

{{ __('Read Notifications') }}

{{ $unreadNotifications }}

{{ __('Unread Notifications') }}

{{ __('Templates') }}

@if(count($notifications) != 0) @foreach($notifications ?? [] as $notification) @endforeach @endif
{{ __('Title') }} {{ __('Comment') }} {{ __('User') }} {{ __('Seen') }} {{ __('Created At') }} {{ __('Action') }}
{{ Str::limit($notification->title,80) }} {{ Str::limit($notification->comment,50) }} {{ Str::limit($notification->user->name ?? '',15) }} {{ $notification->seen == 1 ? 'Read' : 'Unread' }} {{ \Carbon\Carbon::parse($notification->created_at)->format('d-F-Y') }}
@if(count($notifications) == 0)
{{ __('!Opps no records found') }}
@endif
@endsection