mobile checkout

This commit is contained in:
merdan 2020-02-25 18:03:41 +05:00
parent 43e99c30ba
commit b06d4ec8cf
2 changed files with 2 additions and 2 deletions

View File

@ -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']);

View File

@ -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']);
}]);