public function postSetPrice(SetPriceRequest $request)
 {
     $order = Order::find($request->id);
     $order->price = $request->price;
     $order->status = 'quote sent';
     $order->save();
     Flash::message('Price set!');
     return redirect()->back();
 }
 public function run()
 {
     Order::truncate();
     Order::unguard();
     $brands = ['nike', 'adidas', 'jordan', 'gucci', 'coach'];
     for ($i = 0; $i < 30; $i++) {
         Order::create(['order_number' => rand(10000, 999999), 'user_id' => 1, 'brand' => $brands[rand(0, 4)], 'model' => 'air 56', 'size' => rand(6, 15)]);
     }
 }
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($order_number)
 {
     $order = Order::where('order_number', '=', $order_number);
     return view('orders.individual.admin', compact('order'));
 }
 public function postDeclineOrder(DeclineOrderRequest $request)
 {
     $order = Order::find($request->id);
     $order->status = 'declined';
     $order->save();
     Flash::message('Order declined');
     return redirect()->back();
 }