public function index($id, $id_anunt) { if (!($anunt = \Binaryk\Models\Nomenclator\TipAnunturi::getRecord((int) $id_anunt))) { return \Redirect::route('proceduri-achizitii'); } $config = Grids::make($id)->toIndexConfig($id); $config['row-source'] .= '/' . $id_anunt; $this->show($config + ['other-info' => ['anunt' => $anunt]]); }
public function getTipAnuntByTipProcedura() { return \Response::json(['success' => true, 'options' => \Binaryk\Models\Nomenclator\TipAnunturi::toPopulateCombobox(\Input::get('id'))]); }