protected function index()
    {
        $calendars = $this->repository
            ->pushCriteria(new \Litepie\Calendar\Repositories\Criteria\CalendarPublicCriteria())
            ->scopeQuery(function($query){
                return $query->orderBy('id','DESC');
            })->paginate();

        return $this->theme->of('calendar::public.calendar.index', compact('calendars'))->render();
    }
protected function index()
    {
        $calendars = $this->repository
            ->pushCriteria(new \Litepie\Calendar\Repositories\Criteria\CalendarPublicCriteria())
            ->scopeQuery(function($query){
                return $query->orderBy('id','DESC');
            })->paginate();

        return $this->theme->of('calendar::public.calendar.index', compact('calendars'))->render();
    }
protected function index ( ) { $ calendars = $ this -> repository -> pushCriteria ( new \ Litepie \ Calendar \ Repositories \ Criteria \ CalendarPublicCriteria ( ) ) -> scopeQuery ( function ( $ query ) { return $ query -> orderBy ( 'id' , 'DESC' ) ; } ) -> paginate ( ) ; return $ this -> theme -> of ( 'calendar::public.calendar.index' , compact ( 'calendars' ) ) -> render ( ) ; }
Show calendar's list.

@param string $slug

@return response
Show calendar s list .