order_item resource
This commit is contained in:
parent
2dd4438cf9
commit
eec0cd0fab
|
|
@ -291,6 +291,7 @@
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Image</th>
|
<th>Image</th>
|
||||||
|
<th>Seller</th>
|
||||||
<th>{{ __('admin::app.sales.orders.product-name') }}</th>
|
<th>{{ __('admin::app.sales.orders.product-name') }}</th>
|
||||||
<th>{{ __('admin::app.sales.orders.price') }}</th>
|
<th>{{ __('admin::app.sales.orders.price') }}</th>
|
||||||
<th>{{ __('admin::app.sales.orders.item-status') }}</th>
|
<th>{{ __('admin::app.sales.orders.item-status') }}</th>
|
||||||
|
|
@ -307,7 +308,10 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
||||||
@foreach ($order->items as $item)
|
@foreach ($order->items as $item)
|
||||||
@php $product = $item->child->product ?? $item->product; @endphp
|
@php
|
||||||
|
$product = $item->child->product ?? $item->product;
|
||||||
|
$seller = $this->sellerProductRepository->getSellerByProductId($item->product_id);
|
||||||
|
@endphp
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
@if($product)
|
@if($product)
|
||||||
|
|
@ -319,6 +323,9 @@
|
||||||
{{$item->sku}} Product not found
|
{{$item->sku}} Product not found
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
|
<td>
|
||||||
|
{{$seller->shop_title??"N/A"}}
|
||||||
|
</td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
@if($product)
|
@if($product)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue