@extends('admin.layouts.app') @section('title', admin_trans('notifications')) @section('page-title', admin_trans('notifications')) @section('content')
{{ admin_trans('create_notification') }}

{{ admin_trans('total_notifications') }}

0

{{ admin_trans('pending') }}

0

{{ admin_trans('sent') }}

0

{{ admin_trans('failed') }}

0

{{ admin_trans('clear_selection') }}
{{ admin_trans('resend') }} {{ admin_trans('delete') }}
@if ($notifications->isEmpty()) @if(request('search')) {{ admin_trans('clear') }} @else {{ admin_trans('create_notification') }} @endif @else @foreach($notifications as $notification) @php $typeColors = [ 'system' => 'info', 'promotional' => 'warning', 'offer' => 'success', 'store' => 'primary', 'brand' => 'secondary', 'user' => 'purple' ]; @endphp {{ admin_trans($notification->type) }}
{{ Str::limit($notification->title, 40) }}
{{ Str::limit($notification->message, 80) }}
@php $priorityVariant = match(true) { $notification->priority >= 8 => 'danger', $notification->priority >= 5 => 'warning', default => 'info' }; @endphp {{ $notification->priority }}
@foreach($notification->channels as $channel) {{ admin_trans($channel) }} @endforeach
{{ $notification->targets->count() }} @php $statusVariant = match($notification->status) { 'sent' => 'success', 'failed' => 'danger', 'pending' => 'warning', default => 'info' }; @endphp {{ admin_trans($notification->status) }}
{{ $notification->created_at->format('M d, Y') }}
{{ $notification->created_at->format('H:i') }}
@if($notification->status === 'failed')
@csrf
@endif
@endforeach
@if ($notifications->hasPages())
@endif @endif
@endsection @push('scripts') @endpush