Order Installment Update

@if(session('success'))
{{ session('success') }}
@endif {{-- Show Order Information like: order_number, dealer name, customer name and mobile number--}}

Order Number: {{ $productOrder->order_number }}

Dealer Name: {{ $productOrder->dealerDetail->proprietor_name ?? 'N/A' }}

Code: {{ $productOrder->dealerDetail->dealer_code ?? 'N/A' }}

Customer Name: {{ $productOrder->customerDetail->cust_nid_name_en }}

Customer Mobile: {{ $productOrder->customerDetail->user->mobile_number }}

@csrf {{-- product select box--}}
{{-- down payment select box by calling api--}}
{{-- tenure months select box by calling api--}}
{{-- After Selecting tenure month show emi price like information instead of fields --}}
@if(old('tenure_months', $productOrder->tenure_months))

EMI Price: {{ $productOrder->total_price ?? 'N/A' }}

Down Payment ({{$productOrder->down_payment_percentage}}): {{ $productOrder->down_payment }}

Security Money ({{$productOrder->security_money_percentage}}): {{ $productOrder->security_money }}

Initial Payment : {{ $productOrder->down_payment + $productOrder->security_money }}

@else

Please select tenure months to see EMI details.

@endif
{{-- reason input box --}}
{{ __('Cancel') }} {{ __('Update') }}
@push('scripts') @endpush