home page musical fix
This commit is contained in:
parent
5475f6d801
commit
1de5077a68
|
|
@ -39,7 +39,7 @@ class PublicController extends Controller
|
|||
->where(Config::get('app.locale'),1)
|
||||
->orderBy('order','asc')
|
||||
->get();
|
||||
|
||||
dump($categories);
|
||||
return $this->render("Pages.HomePage",[
|
||||
'categories' => $categories,
|
||||
'sliders' => $sliders
|
||||
|
|
|
|||
|
|
@ -10,7 +10,9 @@
|
|||
@include('desktop.Partials.HomeSlider')
|
||||
|
||||
@foreach($categories as $category)
|
||||
@include("desktop.Partials.{$category->view_type}",['category'=>$category])
|
||||
@if(!empty($category->events) && $category->events->count()>0)
|
||||
@include("desktop.Partials.{$category->view_type}",['category'=>$category])
|
||||
@endif
|
||||
@endforeach
|
||||
@stop
|
||||
@section('after_scripts')
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
@if(!empty($category->events) && $category->events->count()>0)
|
||||
<section id="kinoteator" class="kinoteator-section waaa container mb-5">
|
||||
<div class="tab-header d-flex justify-content-between col-12 px-0">
|
||||
<h2> <a class="text-dark text-uppercase" href="{{$category->url}}">{{$category->title}}</a></h2>
|
||||
|
|
@ -28,4 +27,3 @@
|
|||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@endif
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
@if(!empty($category->events) && $category->events->count()>0)
|
||||
<section id="konserty" class="container" style="background-image: url({{asset('assets/images/bg/konserty.jpg')}});
|
||||
background-repeat: no-repeat; background-size: 100%;">
|
||||
<div class="tab-header d-flex justify-content-between col-12">
|
||||
|
|
@ -28,4 +27,4 @@
|
|||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@endif
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
@if(!empty($category->events) && $category->events->count()>0)
|
||||
<section id="cartoon" class="kinoteator-section waaa container mb-5">
|
||||
<div class="tab-header d-flex justify-content-between col-12 px-0">
|
||||
<h2> <a class="text-dark text-uppercase" href="{{$category->url}}">{{$category->title}}</a></h2>
|
||||
|
|
@ -27,4 +26,3 @@
|
|||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@endif
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
@if(!empty($theatre->events) && $theatre->events->count()>0)
|
||||
<section id="teator" class="container teator">
|
||||
<div class="tab-header d-flex justify-content-between col-12">
|
||||
<h2> <a class="text-dark text-uppercase" href="{{$theatre->url}}">{{$theatre->title}}</a></h2>
|
||||
<h2> <a class="text-dark text-uppercase" href="{{$category->url}}">{{$category->title}}</a></h2>
|
||||
<div style="height: 5px; position: absolute; bottom: 10px; width: 100px; background-color: rgba(211,61,51,1)"></div>
|
||||
<div class="owl-nav disabled" style="float: right">
|
||||
<button type="button" role="presentation" class="owl-prev">
|
||||
|
|
@ -22,7 +21,7 @@
|
|||
data-arrows-classes="u-arrow-v1 g-absolute-centered--x g-width-35 g-height-35 g-font-size-18 g-color-gray g-bg-white"
|
||||
data-arrow-left-classes="fa fa-angle-up g-top-0" data-arrow-right-classes="fa fa-angle-down g-bottom-0"
|
||||
data-nav-for="#carousel-09-2">
|
||||
@foreach($theatre->events as $event)
|
||||
@foreach($category->events as $event)
|
||||
@include('desktop.Partials.TheaterItem',['event'=>$event])
|
||||
@endforeach
|
||||
</div>
|
||||
|
|
@ -32,7 +31,7 @@
|
|||
<div id="carousel-09-2" class="js-carousel text-center u-carousel-v3 g-mx-minus-10 g-mx-minus-0--sm g-my-minus-5--sm"
|
||||
data-infinite="true" data-center-mode="true" data-vertical="true" data-slides-show="4"
|
||||
data-is-thumbs="true" data-nav-for="#carousel-09-1">
|
||||
@foreach($theatre->events as $event)
|
||||
@foreach($category->events as $event)
|
||||
<div class="js-slide g-px-10 g-px-0--sm g-py-5--sm">
|
||||
<img class="img-fluid w-100" src="{{$event->image_url ?? '#'}}">
|
||||
</div>
|
||||
|
|
@ -43,4 +42,3 @@
|
|||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue