@extends('layout.admin') @section('styles') @endsection @section('content')

Search Log Detail

Search Log

End Point: {{ $log->endpoint ?? 'N/A' }}

Response Status: {{ $log->response_status ?? 'N/A' }}

IP Adress: {{ ucfirst($log->ip_address ?? 'N/A' ) }}

Created At: {{ ucfirst($log->created_at ?? 'N/A' ) }}

@php $details = json_decode($log->request_payload, true); @endphp @php function renderDetails($data, $level = 0) { foreach ($data as $key => $value) { $indent = $level * 10; // Increase indent with nesting $keyLabel = is_string($key) ? ucwords(str_replace('_', ' ', $key)) : 'Item'; if (is_array($value)) { echo "
"; echo "{$keyLabel}:"; renderDetails($value, $level + 1); echo "
"; } else { echo "
"; echo "{$keyLabel}: " . htmlentities($value) . "
"; } } } @endphp @if ($details && is_array($details))
@php renderDetails($details); @endphp
@else

No additional details provided.

@endif
@endsection @section('script') @endsection