diff --git a/app/Http/Controllers/PublicController.php b/app/Http/Controllers/PublicController.php index 6a5b54f8..f0ac97c0 100644 --- a/app/Http/Controllers/PublicController.php +++ b/app/Http/Controllers/PublicController.php @@ -19,8 +19,8 @@ class PublicController extends Controller public function showHomePage(){ $cinema = Event::cinema()->onLive()->take(11)->get(); // dd($cinema); - $theatre = Event::theatre()->onLive()->take(12)->get(); - $musical = Event::musical()->onLive()->take(12)->get(); + $theatre = Event::theatre()->onLive()->take(6)->get(); + $musical = Event::musical()->onLive()->take(8)->get(); $sliders = Slider::where('active',1)->get(); return view('Bilettm.Public.HomePage')->with([ 'cinema' => $cinema, diff --git a/public/assets/images/fs1.jpg b/public/assets/images/fs1.jpg new file mode 100644 index 00000000..25afdd39 Binary files /dev/null and b/public/assets/images/fs1.jpg differ diff --git a/resources/views/Bilettm/Partials/HomeCinema.blade.php b/resources/views/Bilettm/Partials/HomeCinema.blade.php index 4e852a22..388cd60c 100644 --- a/resources/views/Bilettm/Partials/HomeCinema.blade.php +++ b/resources/views/Bilettm/Partials/HomeCinema.blade.php @@ -15,31 +15,23 @@
+ @foreach($cinema->slice(0,4) as $cinemaEvent)
- @include('Bilettm.Partials.CinemaItem',['event'=>$cinema->shift(1)]) + @include('Bilettm.Partials.CinemaItem',['event'=>$cinemaEvent])
-
- @include('Bilettm.Partials.CinemaItem',['event'=>$cinema->shift(1)]) -
-
-
-
- @include('Bilettm.Partials.CinemaItem',['event'=>$cinema->shift(1)]) -
-
- @include('Bilettm.Partials.CinemaItem',['event'=>$cinema->shift(1)]) -
+ @endforeach +
- @if($cinema->count()>0) + @if($cinema->count()>4)
- @foreach($cinema as $event) + @foreach($cinema->slice(4) as $cinemaEvent)
- @include('Bilettm.Partials.CinemaItem',['event'=>$event]) + @include('Bilettm.Partials.CinemaItem',['event'=>$cinemaEvent])
@endforeach
diff --git a/resources/views/Bilettm/Partials/HomeMusical.blade.php b/resources/views/Bilettm/Partials/HomeMusical.blade.php index 56bedc9b..f9af9fe3 100644 --- a/resources/views/Bilettm/Partials/HomeMusical.blade.php +++ b/resources/views/Bilettm/Partials/HomeMusical.blade.php @@ -1,4 +1,4 @@ -
+
@@ -41,420 +41,21 @@ +
diff --git a/resources/views/Bilettm/Partials/HomeSlider.blade.php b/resources/views/Bilettm/Partials/HomeSlider.blade.php index 52ce4253..36479b48 100644 --- a/resources/views/Bilettm/Partials/HomeSlider.blade.php +++ b/resources/views/Bilettm/Partials/HomeSlider.blade.php @@ -1,21 +1,27 @@ -
- -
- @include('Bilettm.Partials.EventTags') -
+ {{--
--}} + {{--@include('Bilettm.Partials.EventTags')--}} + {{--
--}}