{{ __('') }}

@extends('layouts.app')
@csrf

Carrito

@if (!empty(session('cart')))
@foreach (session('cart') as $productId => $item)
{{ $item['name'] }}

Descripción

Precio

Logo

{{ empty($item['size_tecnicas'][0]) ? 'Tintas' : 'Tamaño' }}

Cantidad

Técnica

Sub Total

{{ $item['descripcion'] }}

${{ $item['price'] }}

@if(is_array($item['nombres_imagenes']))
@foreach($item['nombres_imagenes'] as $logo) {{ $logo }} @endforeach
@else {{ $item['nombres_imagenes'] }} @endif
@if(is_array($item['size_tecnicas'])) @foreach($item['size_tecnicas'] as $size)

{{ $size }}

@endforeach
@else

{{ $item['size_tecnicas'] }}

@endif

{{ $item['quantity'] }}

@if(isset($brandings[$item['branding']])) {{ $brandings[$item['branding']]->name }} @else {{ $item['branding'] }} @endif

{{ $item['price'] * $item['quantity'] }}

@endforeach

Resumen del Carrito

    @php $totalQuantity = 0; $totalPrice = 0; $subtotal = 0; $iva = 0; @endphp @foreach (session('cart') as $item) @php $totalQuantity += $item['quantity']; $subtotal += $item['quantity'] * $item['price']; $iva = $subtotal * 0.16; $totalPrice = $subtotal + $iva ; @endphp
  • {{ $item['name'] }}

    Cantidad: {{ $item['quantity'] }}

    Subtotal: ${{ $subtotal }}

  • @endforeach

Total de productos: {{ $totalQuantity }}

Precio total: ${{ $totalPrice }}

@else

No hay productos en el carrito.

@endif