public function index(JobRequest $request)
    {
        $view = $this->response->theme->listView();

        if ($this->response->typeIs('json')) {
            $function = camel_case('get-' . $view);
            return $this->repository
                ->setPresenter(\Litecms\Career\Repositories\Presenter\JobPresenter::class)
                ->$function();
        }

        $jobs = $this->repository->paginate();

        return $this->response->title(trans('career::job.names'))
            ->view('career::job.index', true)
            ->data(compact('jobs'))
            ->output();
    }
public function index(JobRequest $request)
    {
        $view = $this->response->theme->listView();

        if ($this->response->typeIs('json')) {
            $function = camel_case('get-' . $view);
            return $this->repository
                ->setPresenter(\Litecms\Career\Repositories\Presenter\JobPresenter::class)
                ->$function();
        }

        $jobs = $this->repository->paginate();

        return $this->response->title(trans('career::job.names'))
            ->view('career::job.index', true)
            ->data(compact('jobs'))
            ->output();
    }
public function index ( JobRequest $ request ) { $ view = $ this -> response -> theme -> listView ( ) ; if ( $ this -> response -> typeIs ( 'json' ) ) { $ function = camel_case ( 'get-' . $ view ) ; return $ this -> repository -> setPresenter ( \ Litecms \ Career \ Repositories \ Presenter \ JobPresenter :: class ) -> $ function ( ) ; } $ jobs = $ this -> repository -> paginate ( ) ; return $ this -> response -> title ( trans ( 'career::job.names' ) ) -> view ( 'career::job.index' , true ) -> data ( compact ( 'jobs' ) ) -> output ( ) ; }
Display a list of job.

@return Response
Display a list of job .