@extends('layouts.app') @section('title', 'TemTechnik | ' . __('general.page_title_checkout')) @section('content')

{{ __('general.checkout_title') }}

@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @php $currency = session('currency', 'AZN'); @endphp

{{ __('general.order_summary') }}

@foreach($cartItems as $item)
{{ $item['product']->name }}

{{ $item['product']->name }}

{{ __('general.quantity') }}: {{ $item['quantity'] }}

{{ __('general.base_price') }}: {{ $item['product']->getCurrencySymbol($currency) }}{{ number_format($item['product']->getPriceInCurrency($currency), 2) }}

@if($item['product']->isDiscounted()) {{ __('general.discount') }}: @if($item['product']->discount_type === 'percent') {{ $item['product']->discount_value }}% @else {{ $item['product']->getCurrencySymbol($currency) }}{{ number_format($item['product']->getDiscountValueInCurrency($currency), 2) }} @endif

{{ __('general.final_price') }}: {{ $item['product']->getCurrencySymbol($currency) }}{{ number_format($item['product']->getFinalPriceInCurrency($currency), 2) }}

@else

{{ __('general.no_discount') }}

@endif

{{ $item['product']->getCurrencySymbol($currency) }}{{ number_format($item['subtotal'], 2) }}

@endforeach

{{ __('general.delivery_baku_note') }}

{{ __('general.total') }} {{ get_currency_symbol($currency) }}{{ number_format($total, 2) }}

{{ __('general.shipping_information') }}

@csrf

{{ __('general.shipping_address') }}

{{ __('general.contact_information') }}

@endsection