"Updated AdminController and orders.blade.php to display order items, added modal to view order details, and made minor changes to adminheader.blade.php"

This commit is contained in:
UronShrestha
2024-07-16 13:50:22 +05:45
parent 12aef87712
commit 7670867b62
4 changed files with 290 additions and 66 deletions

View File

@ -74,24 +74,6 @@
</thead>
{{-- old tbody --}}
{{-- <tbody>
@foreach ($items as $product)
@if ($product->order_id == $item->id)
<tr>
<td>{{ $product->name }}</td>
<td><img src="{{ asset('uploads/products/' . $product->picture) }}"
alt="" width= "100px"
height="100px"></td>
<td>{{ $product->quantity }}</td>
<td>{{ $product->price }}</td>
<td>{{ $product->price * $product->quantity }}
</td>
</tr>
@endif
@endforeach
</tbody> --}}
{{-- new tbody --}}
<tbody>
@foreach ($items as $product)