@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/...