mobile checkout
This commit is contained in:
parent
43e99c30ba
commit
b06d4ec8cf
|
|
@ -66,7 +66,7 @@ class PublicController extends Controller
|
|||
[$order, $data] = $this->sorts_filters();
|
||||
$data['category'] = $category;
|
||||
$data['sub_cats'] = $category->children()
|
||||
->withLiveEvents($order, $data['start'], $data['end'])//wiered
|
||||
->withLiveEvents($order, $data['start'], $data['end'], $category->events_limit + 3)//wiered
|
||||
->whereHas('cat_events',
|
||||
function ($query) use($data){
|
||||
$query->onLive($data['start'], $data['end']);
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@ class Category extends \Illuminate\Database\Eloquent\Model{
|
|||
->with('starting_ticket')
|
||||
->withCount(['stats as views' => function($q){
|
||||
$q->select(DB::raw("SUM(views) as v"));}])
|
||||
->onLive($start_date, $end_date)//event scope onLive get only live events
|
||||
// ->onLive($start_date, $end_date)//event scope onLive get only live events
|
||||
->orderBy($orderBy['field'],$orderBy['order']);
|
||||
}]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue