@extends('shop.layout') @section('title', __('portal.shop.cart_title')) @section('content') @php $currency = $tenant->settings['currency'] ?? 'MDL'; @endphp

{{ __('portal.shop.cart_title') }}

@if (empty($cart))

{{ __('portal.shop.cart_empty') }}

{{ __('portal.shop.view_catalog') }}
@else
@csrf
@foreach ($cart as $id => $item) @endforeach
{{ __('portal.shop.part') }}{{ __('portal.shop.price') }}{{ __('portal.shop.qty') }}{{ __('portal.common.total') }}
{{ $item['name'] }} @if (!empty($item['article']))
{{ $item['article'] }}
@endif
{{ number_format($item['price'], 2) }} {{ $currency }} {{ number_format($item['price'] * $item['qty'], 2) }} {{ $currency }}
{{ __('portal.shop.subtotal') }} {{ number_format($subtotal, 2) }} {{ $currency }}
{{ __('portal.shop.checkout_arrow') }}
@endif @endsection