@extends('layouts.app') @section('title', 'Danh sách API') @section('page_title', 'Danh sách API') @section('breadcrumb') @endsection @php $methodBadgeClass = [ 'GET' => 'badge-success', 'POST' => 'badge-primary', 'PUT' => 'badge-warning', 'PATCH' => 'badge-warning', 'DELETE' => 'badge-danger', ]; @endphp @section('content')

Tổng số: {{ $apis->total() }}

@if ($search) @endif
Thêm API
@forelse ($apis as $api) @php $success = $api->success_status ?? []; @endphp @empty @endforelse
# Domain IP URL Method Success codes Trạng thái Thao tác
{{ $apis->firstItem() + $loop->index }} {{ $api->server?->domain?->name ?? '—' }} {{ $api->server?->ip_address ?? '—' }} {{ $api->url }} {{ $api->method }} @forelse ($success as $code) {{ $code }} @empty — @endforelse
status ? 'checked' : '' }}>
Sửa
@csrf @method('DELETE')
@if ($search) Không tìm thấy API nào khớp với "{{ $search }}". Xoá tìm kiếm @else Chưa có API nào. Thêm API đầu tiên. @endif
@if ($apis->hasPages()) @endif
@endsection @push('scripts') @endpush