@php $all_categories = $categories_list; $parents = $all_categories->whereNull('parent_id')->pluck('id')->toArray(); $total_qty = session()->has('total_qty') ? session()->get('total_qty') : 0; $subTotal = session()->has('subTotal') ? session()->get('subTotal') : 0; if(auth()->user() && auth()->user()->role_id != 5){ auth()->logout(); } @endphp @if(!empty($ecommerce_setting->is_rtl)) @else @endif Checkout @if(!config('database.connections.saleprosaas_landlord')) @else @endif @if(isset($ecommerce_setting->custom_css)) @endif
@php $stripe = $gateways->where('name','Stripe')->first(); if(isset($stripe)){ $stripe_details = $stripe->details; $details_array = explode(';',$stripe_details); $publishable_key = explode(',', $details_array[1])[1]; } @endphp
@csrf
@guest
{{trans('file.Returning customer?')}} {{trans('file.Click here to login')}}
@endguest
{{trans('file.Shipping Details')}}
@if(auth()->user() && auth()->user()->role_id == 5) @if(isset($def_address->address))
{{trans('file.Default Address')}}

{{ $def_address->address }}

{{ $def_address->city }}@if(isset($def_address->state)), {{ $def_address->state }}@endif @if(isset($def_address->country)), {{ $def_address->country }}@endif @if(isset($def_address->zip)), {{ $def_address->zip }}@endif

{{ $def_address->name ?? $customer->name ?? ''}}

{{ $def_address->email ?? $customer->email ?? ''}}

{{ $def_address->phone ?? $customer->phone ?? ''}}

@endif
@endif
@if(!auth()->user())
@endif
{{trans('file.Your order')}}

{{trans('file.product(s)')}}

@foreach($cart as $id => $cart_product) @php if($cart_product['variant'] != 0){ $variant = implode(' | ', $cart_product['variant']); }else{ $variant = 0; } @endphp
@if(isset($cart_product['image'])) @php $images = explode(',', $cart_product['image']); $cart_product['image'] = $images[0]; @endphp @if(!config('database.connections.saleprosaas_landlord')) {{ $cart_product['name'] }} @else {{ $cart_product['name'] }} @endif @else {{ $cart_product['name'] }} @endif

{!! $cart_product['name'] !!} @if($variant != 0)({{$variant}})@endif

{{ $cart_product['qty'] }} x {{$currency->symbol ?? $currency->code}}{{ $cart_product['total_price'] / $cart_product['qty'] }}

{{$currency->symbol ?? $currency->code}}{{ $cart_product['total_price'] }}

@endforeach

{{trans('file.Sub Total')}}: {{$currency->symbol ?? $currency->code}}{{ $subTotal ?? 0.00 }}

{{trans('file.Shipping cost')}}: {{$currency->symbol ?? $currency->code}}0

{{trans('file.grand total')}}: {{$currency->symbol ?? $currency->code}}0


@if(isset($pages))
@foreach($pages as $index=>$page) {{$page->page_name}} @if(count($pages) == ($index+1)) . @else , @endif @endforeach
@endif @if(isset($ecommerce_setting->gift_card) && ($ecommerce_setting->gift_card == 1))
@endif @foreach($gateways as $gateway) @endforeach
@if(isset($ecommerce_setting->custom_chat)) {{$ecommerce_setting->custom_chat}} @endif @if(!config('database.connections.saleprosaas_landlord')) @else @endif @if(isset($ecommerce_setting->custom_js)) @endif