@section('title', __('radio.page_passwords_title')) @section('head') @endsection @include('includes/header') @include('includes/topRadio')

{{ __('radio.page_passwords_title') }}

@if (\Session::has('success')) @php Session::forget('success'); @endphp @endif
{{ __('radio.passwords_add_dj') }}
@if($allDjs->count() == 0)

{{ __('radio.passwords_empty') }}

@else
@foreach($allDjs as $dj) @php $parts = preg_split('/\s+/', trim($dj->name)); $ini = mb_substr($parts[0] ?? '', 0, 1); if (count($parts) > 1) { $ini .= mb_substr(end($parts), 0, 1); } @endphp @endforeach
{{ __('general.table_name') }} {{ __('radio.passwords_last_broadcast') }} {{ __('general.table_status') }} {{ __('radio.table_actions') }}
{{ $ini }} {{ $dj->name }}
{{ ($dj->last_login ? date('d/m/Y H:i',strtotime($dj->last_login)) : 'Nenhuma') }} @if($dj->active) {{ __('radio.passwords_on_air') }} @else {{ __('radio.status_offline') }} @endif
{{ __('radio.password_show_title') }} @if(!$dj->active)
@method('DELETE')
@endif
@endif
@include('includes/footer')