@php $currency_code = getCurrencyCode(); @endphp
{{__('defaultTheme.contact')}}
@if(auth()->check()) {{auth()->user()->email != null?auth()->user()->email : auth()->user()->phone}} @else @endif
{{__('common.change')}}
@php $delivery_info = null; if(session()->has('delivery_info')){ $delivery_info = session()->get('delivery_info'); } @endphp @if(!$delivery_info || $delivery_info && $delivery_info['delivery_type'] == 'home_delivery')
{{__('defaultTheme.ship_to')}}
{{$address->address}}
{{__('common.change')}}
@else
{{__('common.billing_address')}}
{{$address->address}}
{{__('common.change')}}
@endif @if(!isModuleActive('MultiVendor')) @if(!$delivery_info || $delivery_info && $delivery_info['delivery_type'] == 'home_delivery')
{{__('common.method')}}
{{$selected_shipping_method->method_name}} - {{single_price($shipping_cost)}}
{{__('common.change')}}
@else
{{__('common.method')}}
Collect from pickup location - {{single_price(0)}}
{{__('common.change')}}
@endif @endif

{{__('common.payment')}}

{{__('defaultTheme.all_transactions_are_secure_and_encrypted')}}.
@php if(isset($coupon_amount)){ $coupon_am = $coupon_amount; }else{ $coupon_am = 0; } @endphp @foreach($gateway_activations as $key => $payment)
@if($payment->method == 'Cash On Delivery') @elseif($payment->method == 'Wallet')
{{__('common.balance')}}: {{single_price(auth()->user()->CustomerCurrentWalletAmounts)}}
@elseif($payment->method == 'Stripe') @include('frontend.amazy.partials.payments.stripe_payment') @elseif($payment->method == 'PayPal') @include('frontend.amazy.partials.payments.payment_paypal') @elseif($payment->method == 'PayStack') @include('frontend.amazy.partials.payments.paystack_payment') @elseif($payment->method == 'RazorPay') @include('frontend.amazy.partials.payments.razor_payment') @elseif($payment->method == 'Instamojo') @include('frontend.amazy.partials.payments.instamojo_payment') @elseif($payment->method == 'PayTM') @include('frontend.amazy.partials.payments.paytm_payment') @elseif($payment->method == 'Midtrans') @include('frontend.amazy.partials.payments.midtrans_payment') @elseif($payment->method == 'PayUMoney') @include('frontend.amazy.partials.payments.payumoney_payment') @elseif($payment->method == 'JazzCash') @include('frontend.amazy.partials.payments.jazzcash_payment_modal') @elseif($payment->method == 'Google Pay') {{ __('wallet.continue_to_pay') }} @push('wallet_scripts') @include('frontend.amazy.partials.payments.google_pay_script') @endpush @elseif($payment->method == 'FlutterWave') @include('frontend.amazy.partials.payments.flutter_payment') @elseif($payment->method == 'Bank Payment') @include('frontend.amazy.partials.payments.bank_payment') @elseif(isModuleActive('Bkash') && $payment->method=="Bkash") @include('bkash::partials._checkout') @elseif(isModuleActive('MercadoPago') && $payment->method=="Mercado Pago") @include('mercadopago::partials._checkout_amazy') @elseif(isModuleActive('SslCommerz') && $payment->method=="SslCommerz") @include('sslcommerz::partials._checkout') @endif
@endforeach
@php $delivery_info = null; if(session()->has('delivery_info')){ $delivery_info = session()->get('delivery_info'); } @endphp

{{__('common.billing_address')}}

@if(auth()->check())
@else @endif
{{ $errors->first('name') }}
{{ $errors->first('address') }}
{{ $errors->first('email') }}
{{ $errors->first('phone') }}
{{ $errors->first('country') }}
{{ $errors->first('state') }}
{{ $errors->first('city') }}
@php $payment_id = encrypt(0); $url = ''; if(count($gateway_activations) > 0 && $gateway_activations[0]->id == 1 || count($gateway_activations) > 0 && $gateway_activations[0]->id == 2){ $gateway_id = (count($gateway_activations) > 0)?encrypt($gateway_activations[0]->id):0; if($gateway_activations[0]->id == 1){ $url = url('/checkout?').'gateway_id='.$gateway_id.'&payment_id='.$payment_id.'&step=complete_order'; $pay_now_btn = 'Pay now'; }elseif($gateway_activations[0]->id == 2){ $url = url('/checkout?').'gateway_id='.$gateway_id.'&payment_id='.$payment_id.'&step=complete_order'; $pay_now_btn = 'Pay now'; } }else { $method = ''; if(count($gateway_activations) > 0){ $method = $gateway_activations[0]->method; } $pay_now_btn = 'Pay now'; } @endphp {!! $pay_now_btn !!}
@if(isModuleActive('MultiVendor')) {{__('defaultTheme.return_to_information')}} @else @if(!$delivery_info || $delivery_info && $delivery_info['delivery_type'] == 'home_delivery') {{__('defaultTheme.return_to_shipping')}} @else {{__('defaultTheme.return_to_information')}} @endif @endif
@if(!isModuleActive('MultiVendor')) @php $actual_total = 0; $subtotal = 0; $additional_shipping = 0; $tax = 0; $sameStateTaxes = \Modules\GST\Entities\GstTax::whereIn('id', app('gst_config')['within_a_single_state'])->get(); $diffStateTaxes = \Modules\GST\Entities\GstTax::whereIn('id', app('gst_config')['between_two_different_states_or_a_state_and_a_Union_Territory'])->get(); $flatTax = \Modules\GST\Entities\GstTax::where('id', app('gst_config')['flat_tax_id'])->first(); @endphp @foreach($cartData as $key => $cart) @if($cart->product_type == 'product')

{{ \Illuminate\Support\Str::limit(@$cart->product->product->product_name, 28, $end='...') }}

@if($cart->product->product->product->product_type == 2) @php $countCombinatiion = count(@$cart->product->product_variations); @endphp

@foreach($cart->product->product_variations as $key => $combination) @if($combination->attribute->name == 'Color') {{$combination->attribute->name}}: {{$combination->attribute_value->color->name}} @else {{$combination->attribute->name}}: {{$combination->attribute_value->value}} @endif @if($countCombinatiion > $key +1) , @endif @endforeach

@endif
{{$cart->qty}}x{{single_price($cart->price)}}
@php if (isModuleActive('WholeSale')){ $w_main_price = 0; $wholeSalePrices = $cart->product->wholeSalePrices; foreach ($wholeSalePrices as $w_p){ if ( ($w_p->min_qty<=$cart->qty) && ($w_p->max_qty >=$cart->qty) ){ $w_main_price = $w_p->sell_price; } elseif($w_p->max_qty < $cart->qty){ $w_main_price = $w_p->sell_price; } } if ($w_main_price!=0){ $subtotal += $w_main_price * $cart->qty; }else{ $subtotal += $cart->total_price; } }else{ $subtotal += $cart->total_price; } $additional_shipping += $cart->product->sku->additional_shipping; @endphp @if (file_exists(base_path().'/Modules/GST/') && $cart->product->product->product->is_physical == 1) @if ($address && app('gst_config')['enable_gst'] == "gst") @if (\app\Traits\PickupLocation::pickupPointAddress(1)->state_id == $address->state) @if($cart->product->product->product->gstGroup) @php $sameStateTaxesGroup = json_decode($cart->product->product->product->gstGroup->same_state_gst); $sameStateTaxesGroup = (array) $sameStateTaxesGroup; @endphp @foreach ($sameStateTaxesGroup as $key => $sameStateTax) @php $gstAmount = ($cart->total_price * $sameStateTax) / 100; $tax += $gstAmount; @endphp @endforeach @else @foreach ($sameStateTaxes as $key => $sameStateTax) @php $gstAmount = ($cart->total_price * $sameStateTax->tax_percentage) / 100; $tax += $gstAmount; @endphp @endforeach @endif @else @if($cart->product->product->product->gstGroup) @php $diffStateTaxesGroup = json_decode($cart->product->product->product->gstGroup->outsite_state_gst); $diffStateTaxesGroup = (array) $diffStateTaxesGroup; @endphp @foreach ($diffStateTaxesGroup as $key => $diffStateTax) @php $gstAmount = ($cart->total_price * $diffStateTax) / 100; $tax += $gstAmount; @endphp @endforeach @else @foreach ($diffStateTaxes as $key => $diffStateTax) @php $gstAmount = ($cart->total_price * $diffStateTax->tax_percentage) / 100; $tax += $gstAmount; @endphp @endforeach @endif @endif @elseif(app('gst_config')['enable_gst'] == "flat_tax") @if($cart->product->product->product->gstGroup) @php $flatTaxGroup = json_decode($cart->product->product->product->gstGroup->same_state_gst); $flatTaxGroup = (array) $flatTaxGroup; @endphp @foreach($flatTaxGroup as $sameStateTax) @php $gstAmount = $cart->total_price * $sameStateTax / 100; $tax += $gstAmount; @endphp @endforeach @else @php $gstAmount = $cart->total_price * $flatTax->tax_percentage / 100; $tax += $gstAmount; @endphp @endif @endif @else @if($cart->product->product->product->gstGroup) @php $sameStateTaxesGroup = json_decode($cart->product->product->product->gstGroup->same_state_gst); $sameStateTaxesGroup = (array) $sameStateTaxesGroup; @endphp @foreach ($sameStateTaxesGroup as $key => $sameStateTax) @php $gstAmount = ($cart->total_price * $sameStateTax) / 100; $tax += $gstAmount; @endphp @endforeach @else @foreach ($sameStateTaxes as $key => $sameStateTax) @php $gstAmount = ($cart->total_price * $sameStateTax->tax_percentage) / 100; $tax += $gstAmount; @endphp @endforeach @endif @endif @else

{{ textLimit(@$cart->giftCard->name, 28) }}

{{$cart->qty}}x{{single_price($cart->price)}}
@php $subtotal += $cart->total_price; @endphp @endif @php $actual_total += $cart->total_price; @endphp @endforeach @php $discount = $subtotal - $actual_total; $total = $subtotal + $tax + $shipping_cost - $discount; @endphp @endif

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

@if(isModuleActive('MultiVendor')) @php $total = $total_amount; @endphp @endif

{{ __('common.subtotal') }}

+ {{single_price($subtotal_without_discount)}}

{{__('common.shipping_charge')}}

@if(isModuleActive('MultiVendor'))

{{ __('defaultTheme.package_wise_shipping_charge') }}

@endif
+ {{single_price(collect($shipping_cost)->sum())}}

{{__('common.discount')}}

- {{single_price($discount)}}

{{__('common.vat/tax/gst')}}

+ {{single_price($tax_total)}}
@php $coupon = 0; $coupon_id = null; $total_for_coupon = $actual_total; @endphp @auth @php if(\Session::has('coupon_type')&&\Session::has('coupon_discount')){ $coupon_type = \Session::get('coupon_type'); $coupon_discount = \Session::get('coupon_discount'); $coupon_discount_type = \Session::get('coupon_discount_type'); $coupon_id = \Session::get('coupon_id'); if($coupon_type == 1){ $couponProducts = \Session::get('coupon_products'); if($coupon_discount_type == 0){ foreach($couponProducts as $key => $item){ $cart = \App\Models\Cart::where('user_id',auth()->user()->id)->where('is_select',1)->where('product_type', 'product')->whereHas('product',function($query) use($item){ $query->whereHas('product', function($q) use($item){ $q->where('id', $item); }); })->first(); $coupon += ($cart->total_price/100)* $coupon_discount; } }else{ if($total_for_coupon > $coupon_discount){ $coupon = $coupon_discount; }else { $coupon = $total_for_coupon; } } } elseif($coupon_type == 2){ if($coupon_discount_type == 0){ $maximum_discount = \Session::get('maximum_discount'); $coupon = ($total_for_coupon/100)* $coupon_discount; if($coupon > $maximum_discount && $maximum_discount > 0){ $coupon = $maximum_discount; } }else{ $coupon = $coupon_discount; } } elseif($coupon_type == 3){ $maximum_discount = \Session::get('maximum_discount'); $coupon = $shipping_cost; if($coupon > $maximum_discount && $maximum_discount > 0){ $coupon = $maximum_discount; } } } @endphp @if(\Session::has('coupon_type')&&\Session::has('coupon_discount'))

{{__('common.coupon')}} {{__('common.discount')}}

- {{single_price($coupon)}}

Valid Coupon Code

Remove Code
@else
@endif @isset($coupon_amount) @php $total = $total - $coupon_amount; @endphp @endisset @endauth
{{__('common.total')}} (Incl. {{__('common.vat/tax/gst')}})
{{single_price($total)}}