@php $hasMixedOrPhysical = false; @endphp @foreach (Cart::content() as $item) @php if ($item?->options?->type == Modules\Shop\app\Models\Product::PHYSICAL_TYPE) { $hasMixedOrPhysical = true; } @endphp @endforeach @php defaultShippingMethod(totalAmount()?->total, $hasMixedOrPhysical); @endphp @if (session()->has('discount')) @endif @if ($setting?->tax_rate) @endif @if ($setting?->is_delivery_charge && $hasMixedOrPhysical) @endif
{{ __('Product') }} {{ __('Sub Total') }}
{{ $item?->name }} {{ $item?->name }} x{{ $item?->qty }} {{ currency($item?->price * $item?->qty) }}
{{ __('Sub Total') }} {{ currency(Cart::subtotal()) }}
{{ __('Discount') }} {{ currency(totalAmount()?->discount) }} (-)
{{ __('Tax') }} {{ currency(totalAmount()?->tax) }}
{{ __('Delivery') }} {{ session('delivery_charge', 0) ? currency(session('delivery_charge', 0)) : __('Free') }}
{{ __('Total') }} {{ currency(totalAmount()?->total + session('delivery_charge', 0)) }}
@php $payable_amount = totalAmount()?->total + session('delivery_charge', 0); @endphp @if ($payable_amount > 0)
{{ __('Payable With Charge') }}
@php $currency = getSessionCurrency(); @endphp @foreach ($activeGateways as $gatewayKey => $gatewayDetails) @if ($paymentService->isCurrencySupported($gatewayKey)) @php $payableDetails = $paymentService->getPayableAmount($gatewayKey, $payable_amount); @endphp

{{ $gatewayDetails['name'] }}: {{ $payableDetails->payable_with_charge }} {{ $currency }}

@endif @endforeach
@endif