<table class="table mb-0">
    <tbody>
    <tr>
        <th>{{ __('web.product') }}</th>
        <th>{{ __('web.quantity') }}</th>
        <th>{{ __('web.product_price') }}</th>
        <th>{{ __('web.tax') }}</th>
        <th>{{ __('web.total') }}</th>

        <th></th>
    </tr>
    @foreach($carts as $cart)
        <tr class="cart_row">
            <td>
                <div class="prod_data d-flex">
                    <a >
                        <img src="{{asset($cart->product->image)}}" alt="" class="prod_img"/>
                    </a>
                    <div class="txt pt-2">
                        <h6 class="title fw-bold">{{strlen($cart->product->currentDescription->name) > 20 ? mb_substr($cart->product->currentDescription->name,0,20,"UTF-8").'...' : $cart->product->currentDescription->name}}</h6>
                        <p class="categ mb-0">{{$cart->product->category->descriptions()->name}} @if($cart->choice_id) - @if($cart->choice->attribute->choiceAttr){{$cart->choice->attribute->choiceAttr->choice->currentLangauge->name}} - @endif {{$cart->choice->choice->currentLangauge->name}} @endif</p>
                    </div>
                </div>
            </td>

            <td>
                <div class="quantity-container">
                    <div class="add-more">
                        <span class="qt-minus" data-id="{{$cart->id}}"><i class="fas fa-minus"></i></span>
                        <span id="cart{{$cart->id}}" class="qt">{{$cart->count}}</span>
                        <span class="qt-plus" data-id="{{$cart->id}}"><i class="fas fa-plus"></i></span>
                    </div>
                </div>
            </td>
            <td>
                <h4 class="price mb-0" id="product_cost_main{{$cart->id}}">
                    <b class="color-primary" id="product_cost{{$cart->id}}"></b> 
                    <small class="fs-6">{{$currency->abbr}}</small>
                </h4>
            </td>
            
            <td>
                <h4 class="price mb-0"><b class="color-primary" id="tax_value{{$cart->id}}"></b> <small class="fs-6">{{$currency->abbr}}</small></h4>
            </td>
            
            <td>
                <h4 class="price mb-0">
                    <b class="color-primary" id="product_cost_total{{$cart->id}}"> </b>
                    <small class="fs-6">{{$currency->abbr}}</small>
                </h4>
            </td>
            <td>
                <a style="cursor: pointer" onclick="deleteCart(this)" data-id="{{$cart->id}}" class="butn sm_butn white_butn fs-5"><i class="fal fa-trash-alt mx-0"></i></a>
            </td>
        </tr>
    @endforeach
    </tbody>
</table>
