@extends('layouts.admin') @section('title', 'System Logs') @section('breadcrumb', 'System Logs') @section('content')

System Logs

Comparison logs, watchlist activity, and API synchronization history

{{-- TABS --}} {{-- COMPARISON LOGS --}} @if($tab === 'comparison')
Comparison Logs
{{ $comparisonLogs->total() }} records
@forelse($comparisonLogs as $log) @empty @endforelse
# User Country A Country B Date
{{ $log->id }}
{{ strtoupper(substr($log->user?->name ?? 'U', 0, 1)) }}
{{ $log->user?->name ?? 'Deleted' }}
{{ $log->user?->email }}
{{ $log->countryOne?->country_name ?? '—' }}
{{ $log->countryTwo?->country_name ?? '—' }}
{{ $log->created_at->format('d M Y H:i') }}
No comparison logs yet.
@if($comparisonLogs->hasPages())
{{ $comparisonLogs->appends(['tab' => 'comparison'])->links() }}
@endif
@endif {{-- WATCHLIST LOGS --}} @if($tab === 'watchlist')
Watchlist Logs
{{ $watchlistLogs->total() }} entries
@forelse($watchlistLogs as $wl) @empty @endforelse
# User Country Added On
{{ $wl->id }}
{{ strtoupper(substr($wl->user?->name ?? 'U', 0, 1)) }}
{{ $wl->user?->name ?? 'Deleted' }}
{{ $wl->country?->country_name ?? '—' }}
{{ $wl->created_at->format('d M Y H:i') }}
No watchlist entries yet.
@if($watchlistLogs->hasPages())
{{ $watchlistLogs->appends(['tab' => 'watchlist'])->links() }}
@endif
@endif {{-- API SYNC LOGS --}} @if($tab === 'api')
API Sync Logs
{{ $apiLogs->total() }} records
@forelse($apiLogs as $log) @empty @endforelse
API Endpoint Status Response Time Timestamp
{{ str_replace('_', ' ', Str::title($log->api_name)) }} {{ Str::limit($log->endpoint, 60) }} {{ $log->status_code }} {{ $log->response_time }}ms {{ $log->requested_at?->format('d M Y H:i:s') ?? $log->created_at->format('d M Y H:i:s') }}
No API logs found.
@if($apiLogs->hasPages())
{{ $apiLogs->appends(['tab' => 'api'])->links() }}
@endif
@endif @endsection