@php use App\Models\City; use App\Models\Promocode; use App\Services\MediaService; use App\Services\TranslationService; use App\Services\CurrencyService; use App\Services\SettingService; $language_code = app(TranslationService::class)->getLanguageCode(); @endphp
@if (count($cart_data) >= 1)
@csrf
@php $item = $cart_data['cart_items'][0]; $product = $item['product'] ?? ($item['comboproduct'] ?? null); $productType = $product['type'] ?? ''; $cartProductType = $item['product_type'] ?? ''; @endphp @if ($productType != 'digital_product' && ($productType != 'combo' || $cartProductType != 'digital_product'))
@if (isset($default_address[0]) && !empty($default_address[0]))
{{ @$default_address[0]->name }}
{{ @$default_address[0]->type }}
{{ @$default_address[0]->address }},
{{ isset($default_address) && !empty($default_address[0]->landmark) ? "{$default_address[0]->landmark} " . app(TranslationService::class)->getDynamicTranslation(City::class, 'name', $default_address[0]->city_id, $language_code) : '' }}
{{ @$default_address[0]->state . ' ' . @$default_address[0]->country . ' ' . @$default_address[0]->pincode }}.

{{ labels('front_messages.mobile', 'Mobile') }}: {{ @$default_address[0]->mobile }}

{{-- @if ($product_availability[0]['is_deliverable'] == true)

All the products are deliverable on the selected address

@else

Some of the Products Are Not deliverable at Selected Address

@endif --}} @php $allDeliverable = true; // Assume all are deliverable initially foreach ($product_availability as $product) { if (!$product['is_deliverable']) { $allDeliverable = false; break; } } @endphp @if ($allDeliverable)

All the products are deliverable on the selected address

@else

Some of the Products Are Not deliverable at Selected Address

@endif
@else

{{ labels('front_messages.address_is_not_added', 'Address is Not Added !!') }}

@endif
@if ($time_slot_config->is_time_slots_enabled == 10)

{{ labels('front_messages.time_slot', 'Time Slot') }}

@foreach ($time_slots as $key => $time_slot)
@endforeach
@endif

{{ labels('front_messages.order_comment', 'Order Comment') }}

@else

{{ labels('front_messages.email', 'Email') }}

@endif

{{ labels('front_messages.pay_with_wallet', 'Pay With Wallet') }}

{{ labels('front_messages.payment_methods', 'Payment Methods') }}

@php $codAllowedForAll = collect($cart_data['cart_items'])->every(function ($item) { $product = $item['product'] ?? ($item['comboproduct'] ?? null); return $product && isset($product['cod_allowed']) && $product['cod_allowed'] == 1; }); @endphp
@if ($payment_method->cod_method == 1 && $codAllowedForAll) @if ($cart_data['cart_items'][0]['product']['type'] != 'digital_product')
@endif @endif @if ($payment_method->phonepe_method == 1)
@endif @if ($payment_method->paypal_method == 1)
@endif @if ($payment_method->paystack_method == 1)
@endif @if ($payment_method->stripe_method == 1)
@endif @if ($payment_method->razorpay_method == 1)
@endif @if ($payment_method->direct_bank_transfer_method == 1)
@endif

{{ labels('front_messages.apply_promocode', 'Apply Promocode') }}

@php $item = $cart_data['cart_items'][0]; $product = $item['product'] ?? ($item['comboproduct'] ?? null); $productType = $product['product_type'] ?? ''; @endphp {{-- --}} @php $system_settings = app(SettingService::class)->getSettings('system_settings', true); $system_settings = json_decode($system_settings, true); $currency_code = session('currency') ?? $system_settings['currency_setting']['code']; $currency_details = app(CurrencyService::class)->getCurrencyCodeSettings($currency_code); @endphp

{{ labels('front_messages.order_summary', 'Order Summary') }}

@php $is_save_later_hide = 1; $is_remove_from_cart = 1; $for_checkout = 1; @endphp @foreach ($cart_data['cart_items'] as $key => $cartItem) @endforeach
  {{ labels('front_messages.image', 'Image') }} {{ labels('front_messages.product', 'Product') }} {{ labels('front_messages.price', 'Price') }} {{ labels('front_messages.qty', 'Qty') }} {{ labels('front_messages.subtotal', 'Subtotal') }}

When your order is delivered, you will receive a cashback of 🎉 in your wallet.

{{-- @dd($cart_data['sub_total']); --}}
{{ labels('front_messages.subtotal', 'Subtotal') }} {{ app(CurrencyService::class)->currentCurrencyPrice($cart_data['sub_total'], true) }}
{{ labels('front_messages.delivery_charge', 'Delivery Charge') }} {{ app(CurrencyService::class)->currentCurrencyPrice($cart_data['delivery_charge'], true) }}
{{ labels('front_messages.coupon_discount', 'Coupon Discount') }} -
@if ($is_wallet_use == true)
{{ labels('front_messages.wallet_balance_used', 'Wallet Balance Used') }} {{ app(CurrencyService::class)->currentCurrencyPrice($wallet_used_balance, true) }}
@endif
{{ labels('front_messages.total', 'Total') }} {{ app(CurrencyService::class)->currentCurrencyPrice($final_total, true) }}

Inclusive of all taxes & Shipping

{{-- address model --}} {{-- promo model --}}
@else @php $title = '' . labels('front_messages.sorry', 'SORRY') . '' . labels('front_messages.cart_is_currently_empty', 'Cart is currently empty'); @endphp @endif
@if ($payment_method->razorpay_method == 1) @endif @if ($payment_method->paypal_method == 1) @endif @if ($payment_method->stripe_method == 1) @endif @if ($payment_method->paystack_method == 1) @endif