<table class="table">
    <thead>
    <tr>
        <th></th>
        <th>Producto</th>
        <th>Precio</th>
        <th>Cantidad</th>
        <th class="text-right">Subtotal</th>
    </tr>
    </thead>
    <tbody>
    @foreach(Cart::content() as $item)
        <tr>
            <td>
                <div class="d-flex align-items-center">
                    <a href="#" class="far fa-times btn-cart-action" data-action="remove" data-row-id="{{ $item->rowId }}"></a>
                    @if($item->options->image)
                        <a href="{{ $item->options->url }}">
                            <div class="img-wrapper">
                                <div class="img-holder img-full">
                                    <img src="{{ asset($item->options->image) }}" alt="" class="absolute">
                                </div>
                            </div>
                        </a>
                    @endif
                </div>
            </td>
            <td>
                <a href="{{ $item->options->url }}">{{ $item->name }}</a>
            </td>
            <td>
                <span>{{ num_format($item->price) }}</span>
            </td>
            <td>
                {!! Form::open() !!}
                {!! Form::hidden('action', 'update') !!}
                {!! Form::hidden('row_id', $item->rowId) !!}
                <div class="input-number">
                    <a href="#" class="plus far fa-plus"></a>
                    <a href="#" class="minus far fa-minus"></a>
                    <input type="number" class="qty" value="{{ $item->qty }}" min="1" name="qty">
                </div>
                {!! Form::close() !!}
            </td>
            <td class="text-right">
                <span>{{ num_format($item->qty * $item->price) }}</span>
            </td>
        </tr>
    @endforeach
    </tbody>
    <tfoot>
    <tr>
        <th colspan="4"></th>
        <th class="text-right"><span>{{ Cart::subtotal(0, ',', '.') }}</span></th>
    </tr>
    </tfoot>
</table>
