Compare commits
1 Commits
23c6f1277f
...
f117c95dc6
Author | SHA1 | Date | |
---|---|---|---|
f117c95dc6 |
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
use App\Models\Order;
|
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Support\Carbon;
|
use Illuminate\Support\Carbon;
|
||||||
|
|
||||||
@ -29,13 +28,7 @@ public function index(Request $request)
|
|||||||
|
|
||||||
return view('dashboard', [
|
return view('dashboard', [
|
||||||
'today' => Carbon::today(),
|
'today' => Carbon::today(),
|
||||||
'tab' => $request->get('tab'),
|
'tab' => $request->get('tab'),
|
||||||
'active_orders' => Order::where('status', '!=', 'cancelled')
|
|
||||||
->where('status', '!=', 'completed')
|
|
||||||
->orderByDesc('rush')
|
|
||||||
->orderBy('due_date')
|
|
||||||
->paginate(15)
|
|
||||||
->withQueryString(),
|
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user