@extends('layouts.dashboard') @section('Title') {{ __('Loan Calculator') . ' ( ' .str_to_upper(Request()->segments()[count(Request()->segments())-1]) . ' )'}} @endsection @section('content')
@if(Session::has('success'))
@endif
{{ csrf_field() }}
@if($type =='fixed')
*
@if ($errors->has('installment_interval'))
{{ $errors->first('fixed_loan_type') }}
@endif
{{--
--}} @endif
@if ($errors->has('loan_amount'))
{{ $errors->first('loan_amount') }}
@endif
@if($type == 'fixed')
@if ($errors->has('given_loan'))
{{ $errors->first('given_loan') }}
@endif
@if($type =='fixed')
*
@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' ) @endif @endsection