{{-- API key rows of "Nuhet på din hemsida" (#2957 slice 6c, card #3020). Included by apiKey/index only. Expects: $data (collection of ApiKey). The old green/red status ball became a pill with the existing Aktiv / Inaktiv words; the name and the "Ändra" button open api.edit, as the name link did. --}} @php $pageRows = \App\Support\TablePagination::rows($data); @endphp @foreach ($pageRows as $keyData) @php $edit = route('api.edit', $keyData['id']); $active = $keyData['status'] == 1; @endphp @endforeach
{{ __('api.name') }} {{ __('api.status') }} {{ __('api.nh.index.columnActions') }}
{{ $keyData['name'] }} {{ __($active ? 'api.form.statusActive' : 'api.form.statusInactive') }} {{ __('api.nh.index.open') }}
{{ trans_choice('api.nh.index.count', $data->count(), ['count' => formatNumber($data->count())]) }}