Beispiel #1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit(Stack $stack)
 {
     // Edit an exisiting stack
     $brands = Brand::lists('short_name', 'id');
     $banks = Bank::lists('name', 'id');
     $types = Type::whereIn('tablename', ['all', 'stacks'])->lists('name', 'id');
     return view('stacks.edit', compact('stack', 'brands', 'banks', 'users', 'types'));
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     $cuenta = BankAccount::where('enterprise_id', $id)->first();
     $bancos = Bank::lists('nombre', 'id');
     if ($cuenta) {
         return view('banks_accounts.edit', compact('cuenta', 'id', 'bancos'));
     } else {
         return view('banks_accounts.create', compact('id', 'bancos'));
     }
 }
 public function permohonan2(Request $request)
 {
     // ###########################  SESSION  #################################
     Session::put('tahunBerakhir', Carbon::parse($request->get('tarikh'))->format('d M Y'));
     // ########################  END SESSION  ################################
     $existed = 0;
     $year = Carbon::parse($request->get('tarikh'))->format('Y');
     $lampiranbsatu = Lampiranbsatu::where('ppk_id', Auth::user()->ppk_id)->where('tahun', $year)->first();
     if ($lampiranbsatu != null) {
         $existed = 1;
     }
     $banks = Bank::lists('name', 'id');
     if ($existed) {
         return View('ppk.rekod.forms._permohonan2', compact('banks', 'existed', 'lampiranbsatu'));
     } else {
         return View('ppk.rekod.permohonan2', compact('banks'));
     }
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     $data['school'] = School::find(1);
     $data['banks'] = Bank::lists('name', 'id')->prepend('Please Select');
     return view('settings.school.edit', $data);
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int $id
  * @return Response
  */
 public function edit($id)
 {
     $house = House::findOrFail($id);
     $banks = Bank::lists('bank_name', 'id');
     return view('house.edit', compact('house', 'banks'));
 }