@extends('layouts.app', ['title' => 'Laravel API Tester'])
@section('content')
Laravel API Tester
أداة داخلية لإرسال الطلبات وحفظ السجل داخل Laravel.
@if(session('error'))
{{ session('error') }}
@endif
@if($errors->any())
@foreach($errors->all() as $error)
{{ $error }}
@endforeach
@endif
@if(isset($result))
النتيجة
الحالة:
{{ $result['status'] ?? '-' }}
| المدة: {{ $result['duration_ms'] ?? '-' }} ms
Response Headers
{{ json_encode($result['headers'] ?? [], JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) }}
Response Body
{{ $result['body'] ?? '' }}
@endif
السجل
آخر {{ isset($history) ? $history->count() : 0 }} عملية في هذه الصفحة
| الوقت |
Method |
URL |
Status |
المدة |
إعادة تعبئة |
@forelse(($history ?? collect()) as $item)
| {{ $item->created_at }} |
{{ $item->method }} |
{{ $item->url }} |
{{ $item->response_status ?? 'ERROR' }} |
{{ $item->duration_ms ?? '-' }} ms |
|
@empty
| لا يوجد سجل بعد. |
@endforelse
@if(isset($history) && method_exists($history, 'links'))
@endif
@endsection