home page chacnge
This commit is contained in:
parent
2d998efd42
commit
b000f26344
|
|
@ -32,7 +32,7 @@ class PublicController extends Controller
|
|||
->first();
|
||||
|
||||
$musical =Category::where('view_type','concert')
|
||||
->categoryLiveEvents(12)
|
||||
->categoryLiveEvents(8)
|
||||
->first();
|
||||
|
||||
$sliders = Slider::where('active',1)->get();
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
@if(!empty($category->events) && $category->events->count()>0)
|
||||
<section id="kinoteator" class="kinoteator-section container">
|
||||
<section id="{{$category->title}}" class="kinoteator-section container">
|
||||
<div class="tab-header d-flex justify-content-between col-12 px-0">
|
||||
<h2 class="">{{$category->title}}</h2>
|
||||
<div style="height: 5px; position: absolute; bottom: 0; width: 100px; background-color: rgba(211,61,51,1)"></div>
|
||||
|
|
@ -7,7 +7,7 @@
|
|||
</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="owl-carousel container row" id="{{$category->title}}-tab1" style="padding: 0 !important; margin: 0">
|
||||
<div class="slider-slider">
|
||||
<div class="row w-100 m-auto">
|
||||
@foreach($category->events->slice(0,8) as $event)
|
||||
|
|
|
|||
|
|
@ -10,14 +10,22 @@
|
|||
<div class="owl-carousel container row" id="konserty-tab1" style="padding: 0 !important; margin: 0">
|
||||
|
||||
<div class="slider-slider row">
|
||||
@foreach($musical->events as $event)
|
||||
@foreach($musical->events->slice(0,4) as $event)
|
||||
<div class="col-3">
|
||||
@include('Bilettm.Partials.MusicalItem',['event'=>$event])
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
@if($category->count()>4)
|
||||
<div class="slider-slider row">
|
||||
@foreach($musical->events->slice(4,4) as $event)
|
||||
<div class="col-3">
|
||||
@include('Bilettm.Partials.MusicalItem',['event'=>$event])
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@endif
|
||||
@endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue