/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $dega = Dega::findOrFail($id); $qyteti = Qytet::lists('qyteti', 'qyteti'); $varet_nga = Dega::lists('dega', 'dega'); return view('dega.edit', compact('dega', 'qyteti', 'varet_nga')); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { // $person = Personat::findOrFail($id); $vendlindja = Qytet::lists('qyteti', 'id'); $profesioni = Profesioni::lists('profesioni', 'id'); $gjendja_civile = GjendjaCivile::lists('statusi', 'id'); $njohuri_shtese = NjohuriShtese::lists('njohuri_shtese', 'id'); $qendra = Dega::lists('dega', 'id'); $pozicioni = Pozicioni::lists('pozicioni', 'id'); $programi = Programi::lists('programi', 'id'); $gatishmeria = Gatishmeria::lists('gatishmeria', 'id'); return view('rregjistrimi.edit', compact('vendlindja', 'profesioni', 'gjendja_civile', 'njohuri_shtese', 'qendra', 'pozicioni', 'programi', 'gatishmeria', 'person')); }