/** * Show the form for editing the specified payment. * * @param int $id * @return Response */ public function edit($id) { $payment = Payment::find($id); $erporders = Erporder::all(); $erporderitems = Erporderitem::all(); return View::make('payments.edit', compact('payment', 'erporders', 'erporderitems')); }
public function payments() { $payments = Payment::all(); $erporders = Erporder::all(); $erporderitems = Erporderitem::all(); $organization = Organization::find(1); $pdf = PDF::loadView('erpreports.paymentsReport', compact('payments', 'erporders', 'erporderitems', 'organization'))->setPaper('a4')->setOrientation('potrait'); return $pdf->stream('Payment List.pdf'); }
/** * Display a listing of erporderitems * * @return Response */ public function index() { $erporderitems = Erporderitem::all(); return View::make('erporderitems.index', compact('erporderitems')); }