@extends('frontend.layouts.app') @push('stylepush') @endpush @section('content')
@csrf
{{ translate('Checkout') }}
@if( site_settings('customer_wallet') == App\Enums\StatusEnum::true->status() )
{{ translate('Payment Type') }}

{{ translate('Please select A Payment Type') }}

@endif
status()) class="d-none mt-4" @endif >
{{ translate('Payment Selection') }}

{{ translate('Please select A Payment Method') }}

@if (site_settings('digital_payment', App\Enums\StatusEnum::false->status()) == App\Enums\StatusEnum::true->status())
{{ translate('Digital Payment') }}
@foreach ($paymentMethods as $paymentMethod)
@endforeach
@endif @if (site_settings('offline_payment', App\Enums\StatusEnum::false->status()) == App\Enums\StatusEnum::true->status())
{{ translate('Manual Payment') }}
@foreach ($manualPaymentMethods as $manualPaymentMethod)
@endforeach
@endif
{{ translate('Order Summary') }}
@php $orderDeatils = $order->orderDetails; $originalPrice = 0; $discount = 0; $tax = 0; $totalAmount = 0; @endphp @foreach ($orderDeatils as $orderDetail) @php $product = $orderDetail->product; @endphp @if($product) @php $originalPrice += $orderDetail->original_price; $tax += $orderDetail->total_taxes; $discount += $orderDetail->discount; $totalAmount += $orderDetail->total_price; @endphp @endif @endforeach
{{translate('Product')}} {{translate("Price")}}
{{$product->name}}

{{limit_words($product->name,2)}}

{{ short_amount($orderDetail->original_price / $orderDetail->quantity) }} x {{$orderDetail->quantity}} ({{$orderDetail->attribute}})

{{ short_amount($orderDetail->original_price / $orderDetail->quantity*$orderDetail->quantity) }}
  • {{translate("Sub Total")}}: {{ short_amount($originalPrice) }}
  • {{translate("All Taxes")}}: {{ short_amount($tax) }}
  • {{translate("Regular discount")}}: {{ short_amount($order->discount) }}
  • {{translate("Shipping fees")}}: {{ short_amount($order->shipping_charge) }}
  • {{translate("Total")}} :
    {{ short_amount($order->amount) }}
@endsection @push('scriptpush') @endpush