@section('title', __('radio.page_passwords_title')) @section('head') @endsection @php $breadcrumb = [ ['label' => __('general.header_nav_radio')], ['label' => __('radio.menu_item_4')], ['label' => __('radio.page_passwords_title')], ]; $weekCols = ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat']; $flash = session('success'); Session::forget('success'); @endphp @include('includes/header-novo')
@include('includes.breadcrumb') @include('includes.flash')

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

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

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

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

{{ trans_choice('radio.passwords_count', $allDjs->count(), ['count' => $allDjs->count()]) }}
@if(!$allDjs->count())

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

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

{{ __('radio.passwords_add_dj') }}
@else
    @foreach($allDjs as $dj) @php $days = collect($weekCols)->filter(fn ($col) => $dj->{$col})->count(); $limited = $days > 0 && $days < 7 || ($dj->time_start && $dj->time_end); @endphp
  • {{ $dj->name }} {{ __('radio.passwords_last_broadcast') }}: {{ $dj->last_login ? date('d/m/Y H:i', strtotime($dj->last_login)) : __('radio.passwords_never') }} @if($limited) · {{ __('radio.passwords_schedule') }} @endif @if($dj->active) {{ __('radio.passwords_on_air') }} @else {{ __('radio.status_offline') }} @endif @if(!$dj->active) @endif
  • @endforeach
@endif
@section('scripts') @endsection @include('includes/footer-novo')