예제 #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'));
 }