@extends('admin.layout') @section('title', 'Sync, EFRIS, API & Audit Monitoring') @section('content')

EFRIS Fiscal Transactions

@forelse($efrisLogs as $tx) @empty @endforelse
IDBusinessTypeModeFDNStatusError
#{{ $tx->id }} {{ $tx->business->name ?? '-' }} {{ $tx->transaction_type }} {{ $tx->provider_mode }} @if($tx->is_mock)MOCK@endif {{ $tx->fdn ?? '-' }} {{ $tx->status }} {{ $tx->error_message ?? '-' }}
No EFRIS transactions logged yet.

Synchronization Batches

@forelse($syncLogs as $s) @empty @endforelse
BatchBusinessDeviceReceived / Processed / Dup / FailStatusTime
{{ \Illuminate\Support\Str::limit($s->sync_batch_id, 12) }} {{ $s->business->name ?? '-' }} {{ $s->device->device_name ?? '-' }} {{ $s->records_received }} / {{ $s->records_processed }} / {{ $s->records_duplicate }} / {{ $s->records_failed }} {{ $s->status }} {{ $s->created_at?->format('Y-m-d H:i:s') }}
No sync batches yet.

Recent API Usage

@forelse($apiLogs as $a) @empty @endforelse
MethodEndpointStatusLatencyIPTime
{{ $a->method }} {{ $a->endpoint }} {{ $a->status_code }} {{ $a->response_time_ms }} ms {{ $a->ip_address }} {{ $a->created_at?->format('Y-m-d H:i:s') }}
No API requests logged yet.

Audit Logs

@forelse($auditLogs as $log) @empty @endforelse
ActionUserBusinessIPTime
{{ $log->action }} {{ $log->user->email ?? 'System' }} {{ $log->business->name ?? 'Platform' }} {{ $log->ip_address ?? '-' }} {{ $log->created_at?->format('Y-m-d H:i:s') }}
No audit logs recorded yet.
@endsection