public function display($view, $count = 10)
    {
        $data = $this->calendar->scopeQuery(function ($query) use ($count) {
            return $query->where('status', '<>', 'Draft')->orderBy('id', 'DESC')->take($count);
        })->all();
        return view('calendar::admin.calendar.' . $view, compact('data'));
    }
public function display($view, $count = 10)
    {
        $data = $this->calendar->scopeQuery(function ($query) use ($count) {
            return $query->where('status', '<>', 'Draft')->orderBy('id', 'DESC')->take($count);
        })->all();
        return view('calendar::admin.calendar.' . $view, compact('data'));
    }
public function display ( $ view , $ count = 10 ) { $ data = $ this -> calendar -> scopeQuery ( function ( $ query ) use ( $ count ) { return $ query -> where ( 'status' , '<>' , 'Draft' ) -> orderBy ( 'id' , 'DESC' ) -> take ( $ count ) ; } ) -> all ( ) ; return view ( 'calendar::admin.calendar.' . $ view , compact ( 'data' ) ) ; }
Display Calendar of the user.

@return void

@author
Display Calendar of the user .