@extends('frontend.app') @section('content') {{-- --}}
{!! adCode('ad_home_top') !!}
@foreach ($sections as $home) @if (empty($home['contents']) || $home['section']->type == "ad") @continue @endif

{!! $home['section']->title !!}

@switch($home['section']->type) @case(App\Models\HomeSection::TYPE_LATEST) @case(App\Models\HomeSection::TYPE_POPULAR) @case(App\Models\HomeSection::TYPE_DJ_REMIX) @case(App\Models\HomeSection::TYPE_TRENDING) @case(App\Models\HomeSection::TYPE_MUSIC)
    @include('frontend.list', ['musics' => $home['contents']])
@break @case(App\Models\HomeSection::TYPE_CATEGORIES)
    @each('frontend.home-category-list', $home['contents'], 'item')
@break @case(App\Models\HomeSection::TYPE_ALBUMS)
@each('frontend.home-album-list', $home['contents'], 'item')
@break @case(App\Models\HomeSection::TYPE_ARTISTS)
@each('frontend.artist-list', $home['contents'], 'item')
@break @case(App\Models\HomeSection::TYPE_PLAYLISTS)
@each('frontend.playlist-list', $home['contents'], 'item')
@break @default @endswitch @if (!empty($home['section']->getCustomField('load_more_url'))) @endif
@endforeach
{!! adCode('ad_home_bottom') !!}
@endsection {{-- @foreach ([trans('Latest'), trans('Trending'), trans('Popularity')] as $item) @php $key = strtolower($item); @endphp
{{ $item }}
@endforeach --}}