Exemple #1
0
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function show($id)
 {
     $sales = Sale::wherePaymentId($id)->with(['product' => function ($query) {
         $query->with('info');
     }])->get();
     $payment = Payment::whereId($id)->with('place')->first();
     return view('client.paymentinfo', compact(['sales', 'payment']));
 }