@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
@endphp
{{-- Desktop orientation --}}
@if(get_design_option_dp($homeContentSingle) == 'Verticle')
@include('front.home-page.home-page-section-mod', [
'slug' => $homeContentSingle,
'vidcount' => $totalvidscount,
])
@elseif(get_design_option_dp($homeContentSingle) == 'Horizontal')
@include('front.home-page.home-videos-landscape-mod', ['slug' => $homeContentSingle])
@endif
{{-- Desktop orientation --}}
{{-- Mobile orientation --}}
@if(get_design_option_mb($homeContentSingle) == 'Verticle')
@include('front.home-page.home-page-section-mb-mod', [
'slug' => $homeContentSingle,
'vidcount' => $totalvidscount,
])
@elseif(get_design_option_mb($homeContentSingle) == 'Horizontal')
@include('front.home-page.home-videos-landscape-mb-mod', ['slug' => $homeContentSingle])
@endif
{{-- Mobile orientation --}}
@endforeach
@else
@php $videoCategories = ['current-news', 'exclusives', 'highlights-opinion', 'full-interviews', 'documentaries']; @endphp
@foreach ($videoCategories as $categorySlug)
@php
$totalvidscount += 10000; // Increment by 10,000 in each iteration
@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