@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('title', $title_menu ?? 'WhatsApp API Clients') @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])
@if (session('message'))
{{ session('message') }}
@endif @if ($errors->any())
@endif @if (isset($authorize) && (string) $authorize->add === '1')
Tambah Aplikasi Eksternal
@csrf
Huruf, angka, underscore, atau strip.
@error('client_code')
{{ $message }}
@enderror
@error('client_name')
{{ $message }}
@enderror
@error('rate_limit')
{{ $message }}
@enderror
@error('expires_at')
{{ $message }}
@enderror
Kosong berarti semua IP diizinkan. Pisahkan dengan koma atau spasi.
@error('allowed_ips')
{{ $message }}
@enderror
@endif
Daftar API Client
@forelse ($clients as $client) @empty @endforelse
Aplikasi API Key Rate Limit Allowed IP Terakhir Digunakan Status Aksi
{{ $client->client_name }}
{{ $client->client_code }}
@if ($client->plain_api_key) @else {{ $client->api_key_prefix }}...
Regenerate API key untuk menyimpan key terenkripsi.
@endif
{{ number_format($client->rate_limit) }}/menit @if (($client->allowed_ips ?? []) === []) Semua IP @else @foreach ($client->allowed_ips as $ip) {{ $ip }} @endforeach @endif @if ($client->last_used_at) {{ $client->last_used_at->format('d-m-Y H:i:s') }}
{{ $client->last_used_ip }}
@else Belum pernah @endif
@if ($client->expires_at && $client->expires_at->isPast()) Expired @elseif ($client->isactive) Aktif @else Nonaktif @endif @if ($client->expires_at)
s.d. {{ $client->expires_at->format('d-m-Y H:i') }}
@endif
@if (isset($authorize) && (string) $authorize->edit === '1')
@csrf
@endif @if (isset($authorize) && (string) $authorize->delete === '1')
@csrf
@endif
@if (isset($authorize) && (string) $authorize->edit === '1')
@csrf
@endif
Belum ada API client.
@endsection