<div class="product_row p-0 border-0">
    <div class="table-responsive">
        <table class="table">
            <thead>
            <tr>
                <th scope="col">{{__('web.product')}}</th>
                <th scope="col">{{__('web.meal_type')}}</th>
                <th scope="col">{{__('web.quantity')}}</th>
                <th scope="col">{{__('web.product_total')}}</th>
                <!-- <th scope="col">Actions</th> -->
            </tr>
            </thead>
            <tbody>
            @foreach($order->products as $row)
                <tr>
                    <td>
                        <div class="prod_item">
                            <div class="img">
                                <img src="{{$row->product->image}}" alt="">
                            </div>
                            <div class="inf">
                                <p> {{$row->product->name}} </p>
                                <h6 class="mt-2"> <span class="txt"> {{$row->product_cost}} {{__('web.sar')}} </span> </h6>
                            </div>
                        </div>
                    </td>
                    <td>
                        <h6> <span class="txt"> {{$row->productGroup->name ?? ''}} </span> </h6>
                    </td>
                    <td>
                        <h6> <span class="txt"> {{$row->count}} </span> </h6>
                    </td>
                    <td>
                        <h6> <span class="txt"> {{$row->total}} {{__('web.sar')}} </span> </h6>
                    </td>
                </tr>
            @endforeach
            </tbody>
        </table>
    </div>
    <div class="total_cart py-3 mt-5 mt-lg-0">
        <ul>
            <li> <span> {{__('web.sub_total')}} </span> <strong> {{$order->payment->total_products}} {{__('web.sar')}} </strong> </li>
            @if($order->payment->cobon_id)
                <li> <span> {{__('web.discount')}} ({{$order->payment->cobon->code}}) </span> <strong> - {{$order->payment->discount}} {{__('web.sar')}} </strong> </li>
            @endif
            <li> <span> {{__('web.tax')}} - {{$order->payment->tax_val}}% </span> <strong> {{$order->payment->tax}} {{__('web.sar')}} </strong> </li>
            @if($order->reservation_id)
                <li> <span> {{__('web.room')}} </span> <strong> {{$order->reservation->payment->total}} {{__('web.sar')}} </strong> </li>
            @endif
            <li class="total"> <span> {{__('web.total')}} </span> <strong> {{$order->payment->total}} {{__('web.sar')}} </strong> </li>
        </ul>
    </div>
</div>
