protected function show($slug)
    {
        $calendar = $this->repository->scopeQuery(function($query) use ($slug) {
            return $query->orderBy('id','DESC')
                         ->where('slug', $slug);
        })->first(['*']);

        return $this->theme->of('calendar::public.calendar.show', compact('calendar'))->render();
    }
protected function show($slug)
    {
        $calendar = $this->repository->scopeQuery(function($query) use ($slug) {
            return $query->orderBy('id','DESC')
                         ->where('slug', $slug);
        })->first(['*']);

        return $this->theme->of('calendar::public.calendar.show', compact('calendar'))->render();
    }
protected function show ( $ slug ) { $ calendar = $ this -> repository -> scopeQuery ( function ( $ query ) use ( $ slug ) { return $ query -> orderBy ( 'id' , 'DESC' ) -> where ( 'slug' , $ slug ) ; } ) -> first ( [ '*' ] ) ; return $ this -> theme -> of ( 'calendar::public.calendar.show' , compact ( 'calendar' ) ) -> render ( ) ; }
Show calendar.

@param string $slug

@return response
Show calendar .