@extends('layouts.customer') @section('styles') @endsection @php $full_address = ''; $user_address = 'Not added Yet!'; $user_country_id = null; if(auth()->user()->address){ $full_address = json_encode(auth()->user()->address); $user_address = auth()->user()->address->address.', '.(auth()->user()->address->country->name ?? "").', '.auth()->user()->address->postal_code; $user_country_id = auth()->user()->address->country_id; } $invoice_id = Request::segment(3); $amtResponseArr = getTotalCartAmount($invoice->id, $user_country_id); $invoice_amount_before_shipping = $amtResponseArr['total_amount']; $total_amount = $total_invoice_amount = $invoice->getInvoiceTotalWithoutAddon(); $total_open_box_amount = $customer->getCustomerOpenBoxesTotalAmount(); $total_with_open_box_amount = $total_invoice_amount+$total_open_box_amount; $liveSaleDiscountRes = getLiveSaleDiscount($saleId, $total_amount); $liveSaleDiscountedAmt = $liveSaleDiscountRes['discounted_amt'] ?? 0; $liveSaleDiscountTxt = ($liveSaleDiscountRes['discount_type'] == 1) ? $liveSaleDiscountRes['discount_val']."%" : "$".$liveSaleDiscountRes['discount_val']; $total_amt_for_shipping_charges = ($invoice_amount_before_shipping - $amtResponseArr['not_arrived_pre_odr_total_amt'])+$total_open_box_amount; if($user_country_id != null && $user_country_id > 0){ $shipping_cost_val = $amtResponseArr['shipping_cost_val']; $shipping_cost_val_txt = "$".number_format($shipping_cost_val,2); }elseif($total_with_open_box_amount < $shipping_threshold->value){ if(!empty($shippingOptions)){ $shipOutOption = $shippingOptions->where('id', 2)->first(); $shipping_cost_val = (isset($shipOutOption) && $shipOutOption) ? $shipOutOption->price : $shipout_cost->value; }else{ $shipping_cost_val = $shipout_cost->value; } $shipping_cost_val_txt = "$".number_format($shipping_cost_val,2); }else{ $shipping_cost_val = 0.00; $shipping_cost_val_txt = 'Free'; } @endphp @section('content')

Checkout

0) style="display:none;" @endif>

Only {{ config('constants.item_price_currency_sign') }}0 away from free shipping

Delivery address
{{ $user_address }} Default @if(auth()->user()->address) Change @else Add Address @endif
Product Order
Add-on Items
@if($invoice->dataEntries->count() > 0) @foreach($invoice->dataEntries()->whereNull('pre_order_id')->get() as $item)
  • {{ $item->crystal->type }}{{ $item->description?"[".$item->description."]":""}}
  • ${{ $item->price }} x {{ $item->quantity }}
  • ${{ number_format($item->total_amount,2) }}
@endforeach @if($invoice->dataEntries()->whereNotNull('pre_order_id')->count() > 0)
Pre Orders

(Pre order items shipping will be calculated upon arrival)

@foreach($invoice->dataEntries()->whereNotNull('pre_order_id')->get() as $itemP)
  • {{ $itemP->crystal->type }}{{ $itemP->description?"[".$itemP->description."]":""}}
  • ${{ $itemP->price }} x {{ $itemP->quantity }}
  • ${{ number_format($itemP->total_amount,2) }}
@endforeach
@endif
@endif
Order Total ({{ $invoice->dataEntries->count() }} items) : ${{ number_format($total_amount,2) }}
Payment Method
@if($payment_methods) @foreach($payment_methods as $key=>$payment_method) @php if($payment_method->qr_image && Storage::disk('public')->exists('payment-method/'.$payment_method->qr_image)){ $image = asset('storage/payment-method/'.$payment_method->qr_image); }else{ $image = asset('front/image/no-qr-image.jpg'); } @endphp
@if($image!='') Download or screenshot QR Code @endif
@if($image!='') @endif

{!! $payment_method->bank_details !!}

{{--Attach Payment Proof *
--}}
@endforeach @endif
  • Merchandise Subtotal : ${{ number_format($total_amount,2) }}
  • Addon Items Total : $0.00
  • {{ trans('frontend.live_discount') }} ({{ $liveSaleDiscountTxt ?? '' }}) : -${{ number_format($liveSaleDiscountedAmt,2) }}
  • {{ trans('frontend.discount_voucher') }} : $0.00
  • Shipping Total : $0.00
  • Total Payment : ${{ number_format($total_amount,2) }}
@endsection @section('scripts') @endsection