order_item resource

This commit is contained in:
merdan 2023-01-10 13:18:06 +05:00
parent 2dd4438cf9
commit eec0cd0fab
1 changed files with 8 additions and 1 deletions

View File

@ -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)