"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:
@ -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)
|
||||
|
Reference in New Issue
Block a user