Пример #1
0
 /**
  * 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'));
 }
Пример #2
0
 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');
 }
Пример #3
0
 /**
  * Display a listing of paymentmethods
  *
  * @return Response
  */
 public function index()
 {
     $paymentmethods = Paymentmethod::all();
     return View::make('paymentmethods.index', compact('paymentmethods'));
 }