{{ __('radio.schedules_h1') }}
@if (\Session::has('success'))
{!! \Session::get('success') !!}
@php Session::forget('success'); @endphp
@endif
- {{ __('radio.weekday_sun') }} {{ __('radio.weekday_short_sun') }}
- {{ __('radio.weekday_mon') }} {{ __('radio.weekday_short_mon') }}
- {{ __('radio.weekday_tue') }} {{ __('radio.weekday_short_tue') }}
- {{ __('radio.weekday_wed') }} {{ __('radio.weekday_short_wed') }}
- {{ __('radio.weekday_thu') }} {{ __('radio.weekday_short_thu') }}
- {{ __('radio.weekday_fri') }} {{ __('radio.weekday_short_fri') }}
- {{ __('radio.weekday_sat') }} {{ __('radio.weekday_short_sat') }}
@php
$fqc[1] = ''.__('radio.schedule_label_weekdays').'';
$fqc[2] = ''.__('radio.stats_period_date').'';
$status_bg[1] = ''.__('radio.schedules_status_enabled').'';
$status_bg[0] = ''.__('radio.schedule_status_disabled').'';
$dia_full[0] = __('radio.weekday_sun'); $dia_full[1] = __('radio.weekday_mon'); $dia_full[2] = __('radio.weekday_tue'); $dia_full[3] = __('radio.weekday_wed');
$dia_full[4] = __('radio.weekday_thu'); $dia_full[5] = __('radio.weekday_fri'); $dia_full[6] = __('radio.weekday_sat');
$dia_min[0] = __('radio.weekday_short_sun'); $dia_min[1] = __('radio.weekday_short_mon'); $dia_min[2] = __('radio.weekday_short_tue'); $dia_min[3] = __('radio.weekday_short_wed');
$dia_min[4] = __('radio.weekday_short_thu'); $dia_min[5] = __('radio.weekday_short_fri'); $dia_min[6] = __('radio.weekday_short_sat');
$day_qr[0] = "sun"; $day_qr[1] = "mon"; $day_qr[2] = "tue"; $day_qr[3] = "wed";
$day_qr[4] = "thu"; $day_qr[5] = "fri"; $day_qr[6] = "sat";
@endphp
-
@php for($dia = 0; $dia <= 6; $dia++) { @endphp
- {{ $dia_full[$dia] }} {{ $dia_min[$dia] }} @php if (isset($age[$dia]) && count($age[$dia]) == 0 || !isset($age[$dia])) { @endphp
-
{{ __('radio.schedules_empty_day') }} {{ __('radio.schedules_empty_day_link') }} {{ __('radio.schedules_empty_day_suffix') }}
@php } else if (isset($age[$dia])) {
for ($cont = 0; $cont < count($age[$dia]); $cont++) {
$hora = explode(";", $age[$dia][$cont]["hora"]);
$nome = explode(";", $age[$dia][$cont]["nome"]);
$data = explode(";", $age[$dia][$cont]["data"]);
$tipo = explode(";", $age[$dia][$cont]["tipo"]);
$code = explode(";", $age[$dia][$cont]["code"]);
$status = explode(";", $age[$dia][$cont]["status"]);
$playlist_id = explode(";", $age[$dia][$cont]["playlist_id"]);
$is_playing = (
$playingScheduleId !== null
&& $code[0] == $playingScheduleId
&& $dia == $todayWeekday
);
$row_num = "";
$total = count($age[$dia]) - 1;
if ($cont == 0) { $row_num = "first-row"; }
if ($cont == $total) { $row_num .= " last-row"; }
@endphp
- @php } } @endphp @php } @endphp