Example #1
0
 public function editExpense(Lpd $lpd, Pengeluaran $pengeluaran)
 {
     $list_tipe = TipePengeluaran::orderBy('nama_kategori', 'asc')->lists('nama_kategori', 'id');
     return view('lpd.edit_pengeluaran', compact('lpd', 'pengeluaran', 'list_tipe'));
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy(TipePengeluaran $tipepengeluaran)
 {
     $tipepengeluaran->delete();
     return redirect('/tipepengeluaran')->with('success', 'Sukses menghapus tipe ' . $tipepengeluaran->nama_kategori . '.');
 }