@if(Cart::count())
    <div class="side-cart-body">
        <ul class="list-unstyled">
            @foreach(Cart::content() as $item)
                <li class="d-flex">
                    <div class="img-wrapper">
                        <div class="img-holder img-full">
                            @if($item->options->image)
                                <img src="{{ asset($item->options->image) }}" alt="" class="absolute">
                            @endif
                        </div>
                    </div>
                    <div class="flex-1">
                        <h3>{{ $item->name }}</h3>
                        <p><b>x{{ $item->qty }}</b> {{ num_format($item->price) }}</p>
                    </div>
                    <a href="#" class="fal fa-times btn-cart-action" data-action="remove" data-row-id="{{ $item->rowId }}"></a>
                </li>
            @endforeach
        </ul>
    </div>
    <div class="side-cart-footer">
        <div class="row row-grid justify-content-between">
            <div class="col-auto">Total:</div>
            <div class="col-auto">{{ Cart::subtotal(0, '', '.') }}</div>
            <div class="col-12">
                <a href="{{ url('checkout') }}" class="btn">Hacer pedido</a>
            </div>
        </div>
    </div>
@else
    <div class="side-cart-body">
        <p class="text-center">No hay productos en tu carrito</p>
    </div>
@endif
