breadcrumbs fix with mobile reserved not to delete
This commit is contained in:
parent
49427f2c21
commit
4178ece0a4
|
|
@ -55,8 +55,8 @@ class PublicController extends Controller
|
|||
$locale = Config::get('app.locale');
|
||||
|
||||
$category = Category::select('id',"title_{$locale}")
|
||||
->with(['children'=>function($q) use($data){
|
||||
$q->select('id','parent_id','events_limit','view_type');
|
||||
->with(['children'=>function($q) use($data,$locale){
|
||||
$q->select('id','parent_id','events_limit','view_type',"title_{$locale}");
|
||||
$q->whereHas('cat_events',
|
||||
function ($query) use($data){
|
||||
$query->onLive($data['start'], $data['end']);
|
||||
|
|
|
|||
|
|
@ -8,20 +8,24 @@
|
|||
@endsection
|
||||
@section('content')
|
||||
@foreach($category->children as $cat)
|
||||
|
||||
@php
|
||||
$cat_events = $events->where('sub_category_id',$cat->id);
|
||||
@endphp
|
||||
<div class="section-section py-3">
|
||||
<div class="col-12 d-flex justify-content-between">
|
||||
<h5 >{{$cat->title}}
|
||||
<div class="title-bottom-line"></div>
|
||||
</h5>
|
||||
@if($cat_events->count() == $cat->events_limit)
|
||||
<a class="red_button" href="{{$cat->url}}">{{__("ClientSide.rep")}}</a>
|
||||
@endif
|
||||
</div>
|
||||
<div class="row mt-2">
|
||||
@include("Shared.Partials.FilterMenu")
|
||||
</div>
|
||||
|
||||
<div class="owl-carousel owl-theme" id="section-slider{{$loop->iteration}}">
|
||||
@foreach($events->where('sub_category_id',$cat->id) as $event)
|
||||
@foreach($cat_events as $event)
|
||||
@include('mobile.Partials.EventListItem')
|
||||
@endforeach
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue