home page musical fix
This commit is contained in:
parent
05dd732090
commit
5475f6d801
|
|
@ -8,7 +8,6 @@
|
|||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Http\Requests\AddEventRequest;
|
||||
use App\Http\Requests\SearchRequest;
|
||||
use App\Http\Requests\SubscribeRequest;
|
||||
use App\Models\EventRequest;
|
||||
|
|
@ -18,7 +17,6 @@ use App\Models\Event;
|
|||
use App\Models\Slider;
|
||||
use App;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Mail\Markdown;
|
||||
use Illuminate\Support\Facades\Config;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Validator;
|
||||
|
|
@ -35,14 +33,13 @@ class PublicController extends Controller
|
|||
$musical = Category::categoryLiveEvents(8,'concert')
|
||||
->take(1)
|
||||
;
|
||||
$categories = $cinema->unionAll($cartoon)->unionAll($musical)->get();
|
||||
$categories = $cinema->unionAll($musical)->unionAll($cartoon)->get();
|
||||
|
||||
$sliders = Slider::where('active',1)
|
||||
->where(Config::get('app.locale'),1)
|
||||
->orderBy('order','asc')
|
||||
->get();
|
||||
|
||||
dump($categories);
|
||||
return $this->render("Pages.HomePage",[
|
||||
'categories' => $categories,
|
||||
'sliders' => $sliders
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
@if(!empty($musical->events) && $musical->events->count()>0)
|
||||
@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">
|
||||
<h2 class=""><a class="text-dark text-uppercase" href="{{$musical->url}}">{{$musical->title}}</a></h2>
|
||||
<h2 class=""><a class="text-dark text-uppercase" href="{{$category->url}}">{{$category->title}}</a></h2>
|
||||
<div style="height: 5px; margin-left: 5px; position: absolute; bottom: 0px; width: 100px; background-color: #ffffff"></div>
|
||||
</div>
|
||||
<div class="tab-ozi col-12">
|
||||
|
|
@ -10,15 +10,15 @@
|
|||
<div class="owl-carousel container row" id="konserty-tab1" style="padding: 0 !important; margin: 0">
|
||||
|
||||
<div class="slider-slider row">
|
||||
@foreach($musical->events->slice(0,4) as $event)
|
||||
@foreach($category->events->slice(0,4) as $event)
|
||||
<div class="col-3">
|
||||
@include('desktop.Partials.MusicalItem',['event'=>$event])
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
@if($musical->events->count()>4)
|
||||
@if($category->events->count()>4)
|
||||
<div class="slider-slider row">
|
||||
@foreach($musical->events->slice(4) as $event)
|
||||
@foreach($category->events->slice(4) as $event)
|
||||
<div class="col-3">
|
||||
@include('desktop.Partials.MusicalItem',['event'=>$event])
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue