Example #1
0
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($id)
 {
     $payment = Payment::findOrFail($id);
     $metaTypes = \App\MetaType::all();
     return view('payment.view', compact(['payment', 'metaTypes']));
 }
Example #2
0
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($id)
 {
     $incoming = Incoming::findOrFail($id);
     $metaTypes = \App\MetaType::where('type', 'Incoming')->get();
     return view('incoming.view', compact(['incoming', 'metaTypes']));
 }
Example #3
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     $metaType = MetaType::findOrFail($id);
     $metaType->delete();
     return redirect()->route('metatype.index', []);
 }