@extends('layouts.app') @section('content')

{{ __('cart') }}

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if(empty($cart))

{{ __('cart_empty') }}

{{ __('continue_shopping') }}
@else
@foreach($cart as $key => $item)
{{ $item['name'] }}
{{ $item['name'] }} @if($item['variant_info'])

{{ $item['variant_info'] }}

@endif

{{ number_format($item['price'], 0, ',', ' ') }} AZN

@csrf

{{ number_format($item['price'] * $item['qty'], 0, ',', ' ') }} AZN

@csrf
@endforeach
@csrf
{{ __('continue_shopping') }}

{{ __('order_summary') }}

@csrf
{{ __('subtotal') }} {{ number_format($total, 2, ',', ' ') }} AZN
@if($discount > 0)
{{ __('discount') }} -{{ number_format($discount, 2, ',', ' ') }} AZN
@endif
{{ __('shipping') }} {{ $shipping > 0 ? number_format($shipping, 2, ',', ' ') . ' AZN' : __('free') }}
{{ __('total') }} {{ number_format($finalTotal, 2, ',', ' ') }} AZN
{{ __('proceed_to_checkout') }}
@endif
@endsection