@extends('layouts.dashboard') @section('Title') {{ __('Loan Calculator') . ' ( ' .str_to_upper(Request()->segments()[count(Request()->segments())-1]) . ' )'}} @endsection @section('content') @if(isset($storeByAjax) && $storeByAjax) @endif @if(isset($triggerClick)) @endif
@if(Session::has('success'))
@endif
{{ csrf_field() }}
@if(isset($longTermFunding)) @elseif(Request()->has('financial_id')) @endif @if($type =='fixed')
*
@if ($errors->has('installment_interval'))
{{ $errors->first('fixed_loan_type') }}
@endif
{{--
--}} @endif
date) value="{{\Carbon\Carbon::make($longTermFunding->date)->format('Y-m-d')}}" readonly @elseif(Request()->has('date')) value="{{\Carbon\Carbon::make(Request()->get('date'))->format('Y-m-d')}}" readonly @endif required type="date" id="start-date" name="start_date" class="form-control number interval-calcs" placeholder="{{__('Loan Start Date')}} {{__('Autoload')}} .." />
long_term_banking_facility_amount) value="{{$longTermFunding->long_term_banking_facility_amount}}" readonly @elseif(Request()->has('current_amount')) value="{{ Request()->get('current_amount') }}" readonly @else value="{{ @old('loan_amount') }}" @endif type="number" step="any" id="loan_amount" name="loan_amount" class="form-control number" placeholder="{{__('Loan Amount')}} .." required /> @if ($errors->has('loan_amount'))
{{ $errors->first('loan_amount') }}
@endif
@if($type == 'fixed')
base_rate) value="{{$loan->base_rate ?: old('base_rate') }}" @else value="{{ @old('base_rate') }}" @endif type="number" step="any" id="base_rate" name="base_rate" class="form-control number pricing-calc-item" placeholder="{{__('Base Rate')}} .." required /> @if ($errors->has('base_rate'))
{{ $errors->first('base_rate') }}
@endif
margin_rate) value="{{$loan->margin_rate ?: old('margin_rate') }}" @else value="{{ @old('margin_rate') }}" @endif type="number" step="any" id="margin_rate" name="margin_rate" class="form-control number pricing-calc-item" placeholder="{{__('Margin Rate')}} .." required /> @if ($errors->has('margin_rate'))
{{ $errors->first('margin_rate') }}
@endif
pricing) value="{{$loan->pricing ?: old('pricing') }}" @else value="{{ @old('pricing') }}" @endif disabled type="number" step="any" min="0" id="pricing" name="pricing" class="form-control number pricing-calc-item" placeholder="{{__('Pricing')}} .." required /> @if ($errors->has('pricing'))
{{ $errors->first('pricing') }}
@endif
@if($type =='fixed')
*
duration) value="{{$loan->duration ?: old('duration') }}" @else value="{{ @old('duration') }}" @endif type="number" step="1" min="1" id="duration" name="duration" class="form-control number grace_period_calc max-tenor-limit installment_condition" placeholder="{{__('Duration In Months')}} .." required /> @if ($errors->has('duration'))
{{ $errors->first('duration') }}
@endif
*
@if ($errors->has('installment_interval'))
{{ $errors->first('installment_interval') }}
@endif
@endif @endif
@if($type != 'fixed')
@if ($errors->has('borrowing_rate'))
{{ $errors->first('borrowing_rate') }}
@endif
@if ($errors->has('margin_interest'))
{{ $errors->first('margin_interest') }}
@endif
@if ($errors->has('min_interest'))
{{ $errors->first('min_interest') }}
@endif
@endif @if($type !='fixed')
{{--

{{@old('loan_type') == 'variable'? 'Variable Installment' : 'Fixed Installment'}}

--}}
@if ($errors->has('repayment_duration'))
{{ $errors->first('repayment_duration') }}
@endif
@if ($errors->has('grace_period'))
{{ $errors->first('grace_period') }}
@endif
@if ($errors->has('installment_interval'))
{{ $errors->first('installment_interval') }}
@endif
@if ($errors->has('interest_interval'))
{{ $errors->first('interest_interval') }}
@endif
@endif
@if(isset($longTermFunding->financial_id)) @endif
@endsection @section('js') {{-- salah --}} @if($type == 'fixed' ) @if(isset($triggerClick)) @endif @endif @endsection