/** * 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')); }
/** * 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')); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { $pajak = Pajak::find($id); $pajak->delete(); return redirect('pajak'); }
/** * Show the form for creating a new resource. * * @return Response */ public function create() { $pajak = Pajak::all(); return view('supplier.create', compact('pajak')); }