Exemplo n.º 1
0
 /**
  * Show the form for creating a new resource.
  *
  * @return Response
  */
 public function create()
 {
     $pajak = Pajak::all();
     $sales = Sales::with('karyawan')->get()->toArray();
     //        dd($sales);
     return view('customer.create', compact('pajak', 'sales'));
 }
Exemplo n.º 2
0
 /**
  * Show the form for creating a new resource.
  *
  * @return Response
  */
 public function create()
 {
     $id = $this->po->max('id');
     $id = $id === null ? 1 : $id + 1;
     $supplier = $this->supplier->get(['id', 'nama'])->toArray();
     $pr = $this->pr->get(['id'])->toArray();
     $terms = SyaratPembayaran::all()->toArray();
     $pajak = Pajak::all()->toArray();
     $akun = Akun::all()->toArray();
     return view('pembelian.pi.create', compact('supplier', 'terms', 'pr', 'id', 'pajak', 'akun'));
 }
Exemplo n.º 3
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     $pajak = Pajak::find($id);
     $pajak->delete();
     return redirect('pajak');
 }
Exemplo n.º 4
0
 /**
  * Show the form for creating a new resource.
  *
  * @return Response
  */
 public function create()
 {
     $pajak = Pajak::all();
     return view('supplier.create', compact('pajak'));
 }