{{ $i }} |
{{ $item->name }} |
{{ $item->address }} |
{{ $item->phone }} |
{{ $item->status }} |
{{ $item->created_at }} |
{{ $item->bill }} |
Name |
Picture |
Quantity |
Price |
Total |
{{-- old tbody --}}
{{--
@foreach ($items as $product)
@if ($product->order_id == $item->id)
{{ $product->name }} |
 }}) |
{{ $product->quantity }} |
{{ $product->price }} |
{{ $product->price * $product->quantity }}
|
@endif
@endforeach
--}}
{{-- new tbody --}}
@foreach ($items as $product)
@if ($item->id == $product->orderId)
{{ $product->name }} |
 }}) |
{{ $product->quantity }} |
{{ $product->price }} |
{{ $product->price * $product->quantity }}
|
@endif
@endforeach
Sub Total
|
{{ $item->bill }} |
|
@endforeach