/** * Show the form for creating a new payment * * @return Response */ public function create() { $erporders = Erporder::all(); $erporderitems = Erporderitem::all(); $paymentmethods = Paymentmethod::all(); return View::make('payments.create', compact('erporders', 'erporderitems', 'paymentmethods')); }
public function paymentmethods() { $paymentmethods = Paymentmethod::all(); $organization = Organization::find(1); $pdf = PDF::loadView('erpreports.paymentmethodsReport', compact('paymentmethods', 'organization'))->setPaper('a4')->setOrientation('potrait'); return $pdf->stream('Payment Method List.pdf'); }
/** * Display a listing of paymentmethods * * @return Response */ public function index() { $paymentmethods = Paymentmethod::all(); return View::make('paymentmethods.index', compact('paymentmethods')); }