@section('title', __('radio.password_show_title')) @section('head') @endsection @php $breadcrumb = [ ['label' => __('general.header_nav_radio')], ['label' => __('radio.page_passwords_title'), 'url' => route('radio.live-passwords.r')], ['label' => __('radio.password_show_title')], ]; $weekdays = [ 'sun' => __('radio.weekday_short_sun'), 'mon' => __('radio.weekday_short_mon'), 'tue' => __('radio.weekday_short_tue'), 'wed' => __('radio.weekday_short_wed'), 'thu' => __('radio.weekday_short_thu'), 'fri' => __('radio.weekday_short_fri'), 'sat' => __('radio.weekday_short_sat'), ]; $host = $getServerDetails->name . '.' . env('BASE_SERVER_URL', 'brascast.com'); $encoder = config('radio.encoder_url'); $shot = null; foreach (['webp', 'png', 'jpg', 'svg'] as $ext) { if (is_file(public_path('assets/img/encoder.' . $ext))) { $shot = '/assets/img/encoder.' . $ext; break; } } $sample = (float) $streamData->autodj_sample ?: 44.1; $sample = $sample < 1000 ? $sample * 1000 : $sample; $lastUse = $djData->last_login ? __($djData->last_ip ? 'radio.password_last_use' : 'radio.password_last_use_noip', [ 'date' => date('d/m/Y H:i', strtotime($djData->last_login)), 'ip' => $djData->last_ip, ]) : __('radio.password_last_use_never'); @endphp @include('includes/header-novo')
@include('includes.breadcrumb') @include('includes.flash')

{{ $djData->name }}

{{ $lastUse }}

@if($djData->prohibed)

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

{{ __('radio.password_show_allowed_days') }}
@foreach($weekdays as $key => $label) {{ $label }} @endforeach
{{ __('radio.password_show_allowed_time') }} {{ substr($djData->time_start, 0, 5) }} - {{ substr($djData->time_end, 0, 5) }}
@endif

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

@if($encoder) {{ __('radio.password_encoder_download') }}

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

@else

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

@endif

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

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

@if($djData->encoder_token) {{ $djData->encoder_token }} @else {{ __('radio.password_token_none') }} @endif
@if($shot) {{ __('radio.password_tab_encoder') }} @endif
@section('scripts') @endsection @include('includes/footer-novo')