@extends('ecommerce::layout.store-layout')
{{-- @section bodies are evaluated BEFORE the parent layout runs, so $isRTL has to be
resolved here rather than relying on the value store-layout computes. --}}
@php $isRTL = $isRTL ?? in_array(app()->getLocale(), ['ar', 'he', 'fa', 'ur'], true); @endphp
@section('title', __('ecommerce::ecommerce.checkout'))
@section('page-styles')
@endsection
@section('content')
@php
$checkoutVatRate = (float) ($cart->cartItems->first()?->item?->merchant?->country?->vat ?? 0);
$checkoutDeliveryFee = $cart->service_type_id == 2 ? 0 : (float) $cart->delivery_fee;
$checkoutVatLabel = rtrim(rtrim(number_format($checkoutVatRate, 2, '.', ''), '0'), '.');
@endphp
@lang('ecommerce::ecommerce.checkout_message')@lang('ecommerce::ecommerce.checkout')