예제 #1
0
 /**
  * Show the application dashboard to the user.
  *
  */
 public function index()
 {
     $timestamp = time() + date("Z");
     $timezone = 1;
     //		dd(date('d/m/Y H:i:s',$timestamp+3600*($timezone+date("I"))));
     $order = J2storeOrder::all();
     $total = floatval(J2storeOrder::isValid()->sum('order_total'));
     $orderInfo = J2storeOrderInfo::all();
     return view('home', compact('orderInfo', 'order', 'total', 'timezone'));
 }
예제 #2
0
 /**
  * @return \Illuminate\View\View
  */
 public function waitCom()
 {
     $order = J2storeOrder::all()->where('order_state_id', 1);
     $orderInfo = J2storeOrderInfo::all();
     return view('pages.commandes.index', compact('orderInfo', 'order'));
 }