コード例 #1
0
 public function waitingPaymentDetail($id)
 {
     // $payment=Payment::where('id',$id)->first();
     $payment = Payment::find($id);
     $checkOuts = CheckOut::where('supplier_id', Auth::user()->id)->where('payment_id', $id)->get();
     $sampleOut = CheckOut::where('supplier_id', Auth::user()->id)->where('payment_id', $id)->first();
     $customer = Customer::where('id', $sampleOut->customer_id)->first();
     $paymentInfo = PaymentInfo::where('id', $payment->payment_info_id)->first();
     return view('dashboard.waitingPaymentDetail', ['customer' => $customer, 'checkOuts' => $checkOuts, 'payment' => $payment, 'paymentInfo' => $paymentInfo]);
 }
コード例 #2
0
 public function showOrderDetail($id)
 {
     $user = Auth::user();
     $supplier = Supplier::where(['id' => $id])->first();
     $orders = $user->userable->checkOuts()->where(['supplier_id' => $id, 'payment_id' => null])->get();
     $paymentInfos = PaymentInfo::where(['supplier_id' => $id])->get();
     return view('dashboard.customer.orderDetail', ['orders' => $orders, 'supplier' => $supplier, 'paymentInfos' => $paymentInfos]);
 }
コード例 #3
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $user = Auth::user();
     $paymentInfos = PaymentInfo::where(['supplier_id' => $user->id])->get();
     return view('dashboard.paymentInfoList', ['paymentInfos' => $paymentInfos]);
 }