Пример #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'));
 }
Пример #2
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $batch = Batch::all();
     return view('batch.home', compact('batch'));
     //
 }
Пример #3
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $batches = Batch::all();
     return view('batch.index', compact('batches'));
 }
Пример #4
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $batches = Batch::all();
     return view('production.index', ['batches' => $batches]);
 }