@extends(theme_view('layouts.app')) @section('title', 'Carrito de Compras') @section('robots', 'noindex, nofollow') @section('content')

Carrito de Compras

@if (Cart::count() > 0)
@csrf
@foreach($cartContent as $item) @php // Obtener el producto usando CO_ARTI $product = \App\Models\Stock::where('CO_ARTI', $item->id)->first(); @endphp @endforeach
  Nombre del Producto Precio Unitario Cantidad Subtotal  
@php $hasValidImage = false; if($item->options->productImage && $item->options->productImage->image) { $imagePath = public_path('uploads/product/small/' . $item->options->productImage->image); if(file_exists($imagePath)) { $hasValidImage = true; } } @endphp @if($hasValidImage) {{ $item->name }} @else {{ $item->name }} @endif

{{ $item->name }}

${{ number_format($item->price, 2) }}
${{ number_format($item->price * $item->qty, 2) }} Eliminar
@if(showShippingCalculator())

Envío y Entrega

Ingrese su destino para obtener una estimación de envío.

@endif

Código de Descuento

Si tiene un código de descuento, ingréselo aquí.

Total del Carrito

Subtotal ${{ Cart::subtotal() }}
Total General ${{ Cart::subtotal() }}
@else

Su carrito está vacío

No ha agregado ningún producto a su carrito de compras.

@endif
@endsection @push('scripts') @endpush