Пример #1
0
 /**
  * Returns view with status 2, showing only deleted orders
  * @return type view | Redirect
  */
 public function ordersErased()
 {
     if (Auth::check()) {
         $data = ['title' => 'Deleted orders', 'orders' => Order::paginate(10), 'status' => 2];
         return view('pages.mainAdminPages.adminOrders')->with($data);
     } else {
         return Redirect::route('admin');
     }
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $orders = Order::paginate(15);
     return view('frontoffice.orders.index', compact('orders'));
 }