refactor: platform orders index order_no link use Arr::query back
This commit is contained in:
@@ -760,7 +760,10 @@
|
||||
@forelse($orders as $order)
|
||||
<tr>
|
||||
<td>{{ $order->id }}</td>
|
||||
<td><a href="/admin/platform-orders/{{ $order->id }}?back={{ urlencode($selfWithoutBack) }}">{{ $order->order_no }}</a></td>
|
||||
@php
|
||||
$orderShowUrl = '/admin/platform-orders/' . $order->id . '?' . \Illuminate\Support\Arr::query(['back' => $selfWithoutBack]);
|
||||
@endphp
|
||||
<td><a href="{!! $orderShowUrl !!}">{{ $order->order_no }}</a></td>
|
||||
<td>
|
||||
@if($order->merchant)
|
||||
<a href="{!! request()->fullUrlWithQuery(['merchant_id' => $order->merchant->id, 'page' => null]) !!}" class="link">{{ $order->merchant->name }}</a>
|
||||
|
||||
Reference in New Issue
Block a user