6
0
Fork 0

order filter

base
panliang 2023-03-27 08:58:41 +08:00
parent f7f5eff6b4
commit 3bf4e1de14
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ class OrderController extends AdminController
])->width(3);
$filter->where('user_coupon_id', fn($q) => $this->input ? $q->whereNotNull('user_coupon_id') : $q->whereNull('user_coupon_id'))->select(['未使用', '已使用'])->width(3);
$filter->between('completed_at')->dateTime()->width(6);
$filter->where('pay_at', fn($q) => $this->input ? $q->whereNotNull('pay_at') : $q->whereNull('pay_at'), '付款状态')->select(['待付款', '已付款'])->width(3);
$filter->where('pay_at', fn($q) => $this->input ? $q->whereNotNull('pay_at') : $q->whereNull('pay_at')->where('status', '!=', Order::STATUS_CANCELLED), '付款状态')->select(['待付款', '已付款'])->width(3);
});
$grid->footer(function ($collection) use ($grid) {