@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; } $total_amount = $invoice->getBoxTotalAmount(auth()->user()->id); if($user_country_id != null && $user_country_id > 0){ $shipping_cost_val = calculateShippingCost($total_amount, $user_country_id); $shipping_cost_val_txt = "$".number_format($shipping_cost_val,2); $shipping_cost_status = 0; }elseif($total_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); $shipping_cost_status = 0; }else{ $shipping_cost_val = 0.00; $shipping_cost_val_txt = 'Free'; $shipping_cost_status = 1; } @endphp @section('content')

Checkout

Delivery address
{{ $user_address }} Default Change
Product Order
@if($boxes->count()>0) @foreach($boxes as $item)
  • #{{ $item->number }}
  • Number of Items : {{ $item->getTotalItemsOfInvoices("box-checkout") }}
  • Subtotal : ${{ number_format($item->getTotalOfArrivedItems("box-checkout"),2) }}
@endforeach @endif
${{ 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
  • Shipping Total : ${{ number_format($shipping_cost_val,2) }}
  • Total Payment : ${{ number_format($shipping_cost_val,2) }}
@endsection @section('scripts') @endsection