mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
update
This commit is contained in:
parent
dad9e43114
commit
a60d68a13f
@ -23,9 +23,12 @@ class OrderController extends Controller
|
|||||||
{
|
{
|
||||||
public function fetch(Request $request)
|
public function fetch(Request $request)
|
||||||
{
|
{
|
||||||
$order = Order::where('user_id', $request->session()->get('id'))
|
$model = Order::where('user_id', $request->session()->get('id'))
|
||||||
->orderBy('created_at', 'DESC')
|
->orderBy('created_at', 'DESC');
|
||||||
->get();
|
if ($request->input('status')) {
|
||||||
|
$model->where('status', $request->input('status'));
|
||||||
|
}
|
||||||
|
$order = $model->get();
|
||||||
$plan = Plan::get();
|
$plan = Plan::get();
|
||||||
for ($i = 0; $i < count($order); $i++) {
|
for ($i = 0; $i < count($order); $i++) {
|
||||||
for ($x = 0; $x < count($plan); $x++) {
|
for ($x = 0; $x < count($plan); $x++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user