home page chacnge
This commit is contained in:
parent
69c5cb5b79
commit
2d998efd42
|
|
@ -27,8 +27,8 @@ class PublicController extends Controller
|
|||
->categoryLiveEvents(16)
|
||||
->first();
|
||||
|
||||
$theatre = Category::where('view_type','theatre')
|
||||
->categoryLiveEvents(6)
|
||||
$theatre = Category::where('view_type','theatre')//todo change to cartoon multik
|
||||
->categoryLiveEvents(16)
|
||||
->first();
|
||||
|
||||
$musical =Category::where('view_type','concert')
|
||||
|
|
|
|||
|
|
@ -1,26 +1,26 @@
|
|||
@if(!empty($cinema->events) && $cinema->events->count()>0)
|
||||
@if(!empty($category->events) && $category->events->count()>0)
|
||||
<section id="kinoteator" class="kinoteator-section container">
|
||||
<div class="tab-header d-flex justify-content-between col-12 px-0">
|
||||
<h2 class="">{{$cinema->title}}</h2>
|
||||
<h2 class="">{{$category->title}}</h2>
|
||||
<div style="height: 5px; position: absolute; bottom: 0; width: 100px; background-color: rgba(211,61,51,1)"></div>
|
||||
<a class="" href="{{$cinema->url}}">{{__('ClientSide.view')}}</a>
|
||||
<a class="" href="{{$category->url}}">{{__('ClientSide.view')}}</a>
|
||||
</div>
|
||||
<div class="tab-ozi col-12 px-0">
|
||||
|
||||
<div class="owl-carousel container row" id="kinoteator-tab1" style="padding: 0 !important; margin: 0">
|
||||
<div class="slider-slider">
|
||||
<div class="row w-100 m-auto">
|
||||
@foreach($cinema->events->slice(0,8) as $event)
|
||||
@foreach($category->events->slice(0,8) as $event)
|
||||
<div class="col-3 single-item-6">
|
||||
@include('Bilettm.Partials.CinemaItem',['event'=>$event])
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
@if($cinema->count()>8)
|
||||
@if($category->count()>8)
|
||||
<div class="slider-slider">
|
||||
<div class="row">
|
||||
@foreach($cinema->events->slice(4) as $event)
|
||||
@foreach($category->events->slice(8) as $event)
|
||||
<div class="col-3 single-item-6 ">
|
||||
@include('Bilettm.Partials.CinemaItem',['event'=>$event])
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -9,10 +9,13 @@
|
|||
|
||||
@include('Bilettm.Partials.HomeSlider')
|
||||
|
||||
@include('Bilettm.Partials.HomeCinema')
|
||||
@if(isset($cinema))
|
||||
@include('Bilettm.Partials.HomeCinema',['category'=>$cinema])
|
||||
@endif
|
||||
|
||||
@if(isset($musical))
|
||||
@include('Bilettm.Partials.HomeMusical')
|
||||
|
||||
@endif
|
||||
{{--<section id="first-add-wrapper" style="margin: 100px 0;">--}}
|
||||
{{-- <div class="container">--}}
|
||||
{{-- <div class="row" style="padding: 0 20px;">--}}
|
||||
|
|
@ -24,7 +27,7 @@
|
|||
{{--</section>--}}
|
||||
|
||||
@if(isset($theatre))
|
||||
@include('Bilettm.Partials.HomeTheatre')
|
||||
@include('Bilettm.Partials.HomeCinema',['category'=>$theatre])
|
||||
@endif
|
||||
{{--<section id="second-add-wrapper" style="margin: 100px 0;">--}}
|
||||
{{-- <div class="container">--}}
|
||||
|
|
|
|||
Loading…
Reference in New Issue