@section('title', __('radio.menu_item_2_sub_2')) @section('head') @endsection @include('includes/header') @include('includes/topRadio')

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

@if (\Session::has('success')) @php Session::forget('success'); @endphp @endif @if (\Session::has('error')) @php Session::forget('error'); @endphp @endif {{-- Tabs --}}
{{-- ===================== SUAS PLAYLISTS ===================== --}}
{{-- Barra de busca + botão criar --}} {{-- DESKTOP: tabela --}}
@forelse($playlists as $playlist) @empty @endforelse
{{ $playlist->id }}
{{ $playlist->name }}
{{ $playlist->total_files }} {{ ($playlist->total_files == '1' ? 'arquivo' : 'arquivos') }} ・ {{ ($playlist->type == '1' ? 'Aleatória' : 'Sequencial') }} ・ {{ $playlist->duration }}
@method('DELETE')
{{ __('radio.playlists_empty') }} {{ __('radio.playlists_create_new') }}
{{ __('radio.playlists_empty_search') }}
{{-- MOBILE: cards --}}
@forelse($playlists as $playlist)
{{ $playlist->name }}
{{ $playlist->total_files }} {{ ($playlist->total_files == '1' ? 'arquivo' : 'arquivos') }} · {{ ($playlist->type == '1' ? 'Aleatória' : 'Sequencial') }} · {{ $playlist->duration }}
@empty
{{ __('radio.playlists_empty') }} {{ __('radio.playlists_create_new') }}
@endforelse
{{ __('radio.playlists_empty_search') }}
{{-- ===================== MODELOS ===================== --}}
@if($modelsMaintence)
{{ __('radio.playlists_templates_maintenance_title') }}
{{ __('radio.playlists_templates_maintenance_text') }}
@elseif($templates->count() > 0) {{-- Barra busca + filtro --}}
{{ __('radio.playlists_templates_filter_all') }} @foreach($categories as $cat) {{ $cat->name }} @endforeach
{{-- DESKTOP: tabela --}}
@foreach($templates as $template) @endforeach
{{ $template->name }}
{{ $template->total_files }} {{ ($template->total_files == '1' ? 'arquivo' : 'arquivos') }} ・ {{ ($template->type == '1' ? 'Aleatória' : 'Sequencial') }} ・ {{ $template->duration }}
{{ $template->category_name }} {{ __('radio.playlists_templates_use') }}
{{ __('radio.playlists_templates_empty_search') }}
{{-- MOBILE: cards --}}
@foreach($templates as $template)
{{ $template->name }}
{{ $template->total_files }} {{ ($template->total_files == '1' ? 'arquivo' : 'arquivos') }} · {{ ($template->type == '1' ? 'Aleatória' : 'Sequencial') }} · {{ $template->duration }}
@endforeach
{{ __('radio.playlists_templates_empty_search') }}
@else
{{ __('radio.playlists_templates_empty') }}
@endif
@include('includes/footer')