@section('title', __('radio.menu_item_5_sub_6')) @section('head') @if(Config::get('constants.IS_APP')) @endif @endsection @include('includes/header') @include('includes/topRadio')

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

@if($streamData->plan_contents == 0)

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

{{ __('radio.library_no_plan_desc') }}
@else
@if($type == 'vinhetas')
@foreach($allLibrary as $lib) @endforeach
@elseif($type == 'campanhas')
@foreach($allLibrary as $lib)
@php for ($i=1; $i <= $lib->total; $i++) { $finalName = $lib->name.'0'.$i; @endphp @php } @endphp
@endforeach
@else @if($allLibrary->count() == 0)
{{ __('radio.library_empty') }}
@else
@endif
@php foreach($allLibrary as $lib){ $category = DB::table('library_categories')->where('id','=',$lib->category)->get()->first(); @endphp
@php for ($i=1; $i <= $lib->total; $i++) { if (strpos($lib->name, 'Previsão do tempo') !== false){ $finalName = $lib->name.' - '.($i == 1 ? 'Centro oeste' : ($i == 2 ? 'Nordeste' : ($i == 3 ? 'Norte' : ($i == 4 ? 'Sudeste' : 'Sul')))); } else{ $finalName = $lib->name.($lib->total == 1 ? ' - Completo' : ' - Parte 0'.$i); if ($lib->id === 193) { $finalName = $lib->name.' ('.$i.')'; } } @endphp @php } @endphp
@php } @endphp
@endif
@endif
@include('includes/footer')