@section('title', __('radio.menu_item_5_sub_1').' '.$dataRelay->name) @section('head') @endsection @php $breadcrumb = [ ['label' => __('general.header_nav_radio')], ['label' => __('radio.menu_item_5')], ['label' => __('radio.menu_item_5_sub_1'), 'url' => route('radio.relays.r')], ['label' => $dataRelay->name], ]; $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'), ]; $isWeekly = (string) $dataRelay->type === '1'; $isLive = (string) $dataRelay->active === '1'; $today = strtolower(date('D')); $start = $isWeekly ? date('H:i', strtotime($dataRelay->time_start)) : date('d/m/Y H:i', strtotime($dataRelay->start_time)); if ($isWeekly) { $end = date('H:i', strtotime($dataRelay->time_end)); } elseif ($dataRelay->end_time) { $end = date('d/m/Y H:i', strtotime($dataRelay->end_time)); } else { $end = __('radio.relays_always_active'); } $isWaiting = ! $isLive && ($isWeekly ? $dataRelay->{$today} && strtotime($dataRelay->time_start) > strtotime(date('H:i:s')) : $dataRelay->start_time && strtotime($dataRelay->start_time) > time()); @endphp @include('includes/header-novo') @include('includes.breadcrumb') @include('includes.flash') {{ $dataRelay->name }} {{ __('radio.relays_show_sub') }} {{ __('radio.action_back') }} @if($isLive) {{ __('radio.relays_action_stop') }} @else {{ __('general.action_edit') }} @endif @if($isLive) {{ __('radio.relays_show_live_note') }} @endif {{ __('radio.relays_show_details') }} @if($isLive) {{ __('radio.home_block_item_type_2') }} @elseif($isWaiting) {{ __('radio.status_waiting') }} @else {{ __('radio.status_offline') }} @endif {{ __('radio.relays_form_type') }} {{ $isWeekly ? __('radio.relays_form_type_weekdays') : __('radio.relays_form_type_datetime') }} @if($isWeekly) {{ __('radio.relays_show_days') }} @foreach($weekdays as $key => $label) {{ $label }} @endforeach @endif {{ $isWeekly ? __('radio.relays_form_time_start') : __('radio.relays_table_start') }} {{ $start }} {{ $isWeekly ? __('radio.relays_show_time_end') : __('radio.relays_table_end') }} {{ $end }} @if($dataRelay->metadata) {{ __('radio.relays_form_metadata') }} {{ $dataRelay->metadata }} @endif {{ __('radio.relays_show_url') }} {{ $dataRelay->url }} @if($isLive) @csrf @endif @section('scripts') @endsection @include('includes/footer-novo')
{{ __('radio.relays_show_sub') }}
{{ __('radio.relays_show_live_note') }}