@section('page-title', 'Lyons Quotas')

Lyons API Quotas

Lyons API Quota Management

{{ now()->format('F Y') }}
@foreach (['success' => 'success', 'error' => 'danger'] as $key => $color) @if (session($key)) @endif @endforeach @if ($errors->any()) @endif
Office Admins

{{ number_format($summary['offices']) }}

All offices
Monthly Base / Office

1,000

Automatically renews monthly
Total Hits Used

{{ number_format($summary['used']) }}

All offices this month
Total Remaining

{{ number_format($summary['remaining']) }}

Includes current-month extras
Reset
Office Monthly Usage
{{ $offices->total() }} matching offices
@forelse ($offices as $office) @php $balance = $office->lyons_balance; $capacity = $balance['monthly_limit'] + $balance['extra_hits']; $percentage = $capacity > 0 ? min(100, round(($balance['used_hits'] / $capacity) * 100)) : 100; @endphp @empty @endforelse
Office Base Extras Used Remaining Usage Add Extra Hits Details
{{ $office->name }}
Unique ID: {{ $office->unique_id ?? '—' }}
{{ number_format($balance['monthly_limit']) }} {{ number_format($balance['extra_hits']) }} {{ number_format($balance['used_hits']) }} {{ number_format($balance['remaining_hits']) }}
{{ $percentage }}%{{ $balance['remaining_hits'] > 0 ? 'Active' : 'Exhausted' }}
@csrf
Usage
No offices found. Try another ID or name.
@if ($offices->hasPages()) @endif
Quotas renew automatically on the first day of every month. Current-month extra hits do not carry forward. Cached Lyons results do not consume hits.
@push('page-js') @endpush