@if ($newToken)

{{ __('⚠ Token-ul tău nou (afișat o singură dată):') }}

{{ $newToken }}
@endif
@php $tokens = $this->getTokens(); @endphp @if (empty($tokens))
{{ __('Niciun token generat. Folosește butonul „Generează token" de sus.') }}
@else @foreach ($tokens as $t) @endforeach
{{ __('Nume') }} {{ __('Folosit ultima dată') }} Creat Permisiuni
{{ $t['name'] }} {{ $t['last_used_at'] }} {{ $t['created_at'] }} {{ $t['abilities'] }}
@endif
{{ __('Cum folosești API-ul:') }}
  1. {{ __('Obține token cu') }} POST /api/v1/login cu email+password JSON
  2. {{ __('Sau generează unul aici (recomandat pentru integrări permanente)') }}
  3. {{ __('Adaugă header') }} Authorization: Bearer <token> la fiecare request
  4. Endpoints disponibile: /api/v1/clients, /api/v1/vehicles, /api/v1/work-orders (GET, POST, PATCH, DELETE)
  5. {{ __('Tot apelul trebuie făcut pe subdomain-ul tău:') }} https://{{ tenant()?->slug ?? 'YOURSLUG' }}.service.mir.md/api/v1/...