调整渠道后台查看银联券核销
This commit is contained in:
@@ -89,14 +89,14 @@ class CouponController extends Controller
|
||||
$end = $request->end;
|
||||
|
||||
UnionpayCoupon::query()
|
||||
->whereHas('outlet', function ($q) use ($shop_name, $user) {
|
||||
$q->where('parent_id', $user->id)
|
||||
->when($shop_name, function ($q) use ($shop_name) {
|
||||
$q->whereHas('info', function ($q) use ($shop_name) {
|
||||
$q->where('nickname', 'like', "%{$shop_name}%");
|
||||
});
|
||||
});
|
||||
})
|
||||
// ->whereHas('outlet', function ($q) use ($shop_name, $user) {
|
||||
// $q->where('parent_id', $user->id)
|
||||
// ->when($shop_name, function ($q) use ($shop_name) {
|
||||
// $q->whereHas('info', function ($q) use ($shop_name) {
|
||||
// $q->where('nickname', 'like', "%{$shop_name}%");
|
||||
// });
|
||||
// });
|
||||
// })
|
||||
->when($coupon_no, function ($q) use ($coupon_no) {
|
||||
$q->where('coupon_no', $coupon_no);
|
||||
})
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
@if(Auth::guard('merchant')->user()->id==313)
|
||||
<li>
|
||||
<a href="#">
|
||||
<i class="fa fa-users"></i>
|
||||
@@ -61,11 +61,12 @@
|
||||
</a>
|
||||
<ul class="nav nav-second-level">
|
||||
<li>
|
||||
<a class="J_menuItem" href="{{ route('merchant.unionpay.coupons') }}"><i class="fa fa-list"></i>核销记录</a>
|
||||
<a class="J_menuItem" href="{{ route('merchant.unionpay.coupons') }}"><i
|
||||
class="fa fa-list"></i>核销记录</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
@endif
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
Reference in New Issue
Block a user