@php
$totalvidscount = 0;
@endphp
@if (get_setting('home_page_section'))
@php
$homeContent = get_setting('home_page_section')->value;
$homeContentArray = explode(',', $homeContent);
@endphp
@foreach ($homeContentArray as $homeContentSingle)
@php
$totalvidscount += 10000; // Increment by 10,000 in each iteration
//retrieve category slug
$categoryModel = App\Models\Category::where('name', $homeContentSingle)->first();
if ($categoryModel) {
$categorySlug = $categoryModel->slug;
} else {
$categorySlug = '';
}
@endphp
{{-- Desktop orientation --}}
@if(get_design_option_dp($categorySlug) == 'Verticle')
@include('front.home-page.home-page-section-mod', [
'slug' => $categorySlug,
'vidcount' => $totalvidscount,
])
@elseif(get_design_option_dp($categorySlug) == 'Horizontal')
@include('front.home-page.home-videos-landscape-mod', ['slug' => $categorySlug])
@endif
{{-- Desktop orientation --}}
{{-- Mobile orientation --}}
@if(get_design_option_mb($categorySlug) == 'Verticle')
@include('front.home-page.home-page-section-mb-mod', [
'slug' => $categorySlug,
'vidcount' => $totalvidscount,
])
@elseif(get_design_option_mb($categorySlug) == 'Horizontal')
@include('front.home-page.home-videos-landscape-mb-mod', ['slug' => $categorySlug])
@endif
{{-- Mobile orientation --}}
@endforeach
@endif
@endsection
@section('custom-script')
{{-- script for slider video change --}}
{{-- missing added in --}}
@endsection