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

{{ __('notification_logs.title') }}

-
@if(request('customer_id') || request('channel') || request('status') || request('date_from') || request('date_to') || request('q')) {{ __('common.cancel') }} @endif
@forelse($rows as $row) @empty @endforelse
{{ __('common.customer') }} {{ __('notification_logs.channel') }} {{ __('notification_logs.recipient') }} {{ __('notification_logs.event') }} {{ __('notification_logs.status') }} {{ __('common.date') }} {{ __('common.actions') }}
@if($row->customer) {{ $row->customer->first_name }} {{ $row->customer->last_name }} @else - @endif @if($row->channel === 'email') E-posta @else SMS @endif {{ $row->recipient }} {{ $row->event }} @if($row->status === 'success') {{ __('notification_logs.success') }} @else {{ __('notification_logs.failed') }} @endif {{ $row->created_at->format('d.m.Y H:i') }}
{{ __('notification_logs.no_logs') }}
{{ __('common.showing_entries', ['from' => $rows->firstItem() ?? 0, 'to' => $rows->lastItem() ?? 0, 'total' => $rows->total()]) }}
    {{ $rows->links('pagination::bootstrap-5') }}
@endsection