@extends('backend.layouts.app') @section('content')

Sent Notifications

Notification History
@forelse($getSendedNotificationList as $key => $value) @php $sentCount = \Illuminate\Support\Facades\DB::table('firebase_notifications') ->where('single_notification_id', $value->id)->count(); $readCount = \Illuminate\Support\Facades\DB::table('firebase_notifications') ->where('single_notification_id', $value->id)->where('is_read', 1)->count(); $unreadCount = $sentCount - $readCount; $readPct = $sentCount > 0 ? round(($readCount / $sentCount) * 100) : 0; @endphp @empty @endforelse
{{ translate('Thumbnail') }} {{ translate('Title & Message') }} {{ translate('Sent To') }} {{ translate('Read Status') }} {{ translate('Date') }} {{ translate('Action') }}
@if($value->thumbnail_image) @else
🔔
@endif
{{ $value->title }}
{{ $value->message }}
📤 {{ $sentCount }} users @if($sentCount > 0)
✅ {{ $readCount }} read @if($unreadCount > 0) ⏳ {{ $unreadCount }} unread @endif
{{ $readPct }}% read rate
@else No data @endif
{{ $value->created_at->format('d M Y') }}
{{ $value->created_at->format('h:i A') }}
🔔

{{ translate('No notifications sent yet') }}

{{ $getSendedNotificationList->appends(request()->input())->links() }}
{{-- User List Modal --}} @endsection @section('script') @endsection