Esempio n. 1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $data = Saldo::find($id);
     $gudang = Gudang::all()->toArray();
     $barang = Barang::all()->toArray();
     $batch = Batch::all()->toArray();
     return view('saldo.edit', compact('data', 'barang', 'gudang', 'batch'));
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $batch = Batch::all();
     return view('batch.home', compact('batch'));
     //
 }
Esempio n. 3
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $batches = Batch::all();
     return view('batch.index', compact('batches'));
 }
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $batches = Batch::all();
     return view('production.index', ['batches' => $batches]);
 }