app/Http/Controllers/ChooseCategoryController.php
/**
     * Display a listing of the resource.
     *
	 * @return \Illuminate\Contracts\View\Factory|
	 * \Illuminate\View\View
	 */
Display a listing of the resource.
Display a listing of the resource .
public function index() {
    	$category = Input::get('category');
		$type_documents = Input::get('type-documents');
        switch ($category) {
			case 'civil':
				return $this->civil($type_documents);
			case 'criminal':
				return $this->criminal($type_documents);
			case 'commercial':
				return $this->commercial($type_documents);
			case 'admin':
				return $this->admin($type_documents);
			case 'adminoffense':
				return $this->adminoffense($type_documents);
		}
    }
public function index ( ) { $ category = Input :: get ( 'category' ) ; $ type_documents = Input :: get ( 'type-documents' ) ; switch ( $ category ) { case 'civil' : return $ this -> civil ( $ type_documents ) ; case 'criminal' : return $ this -> criminal ( $ type_documents ) ; case 'commercial' : return $ this -> commercial ( $ type_documents ) ; case 'admin' : return $ this -> admin ( $ type_documents ) ; case 'adminoffense' : return $ this -> adminoffense ( $ type_documents ) ; } }
Display a listing of the resource.
Display a listing of the resource .