{!! Form::open(array('role' => 'form', 'files'=>'false', 'class'=>'form-horizontal form-groups')) !!}
{!! Form::label('company_id_fk', $data['attributes']['company_id_fk'], ['class' => 'col-sm-2 control-label']) !!}
{!! Form::select('company_id_fk', $data['companyData'], $data['model']->company_id_fk, ['class' => 'form-control getProject', 'id' => 'company_id_fk']) !!}

{{ $errors->error->first('company_id_fk') }}

{!! Form::label('project_id_fk', $data['attributes']['project_id_fk'], ['class' => 'col-sm-2 control-label']) !!}
{!! Form::select('project_id_fk', array(''=>'Select any'), $data['model']->project_id_fk, ['class' => 'form-control getBranch', 'id' => 'project_id_fk']) !!}

{{ $errors->error->first('project_id_fk') }}

{!! Form::label('branch_id_fk', $data['attributes']['branch_id_fk'], ['class' => 'col-sm-2 control-label']) !!}
{!! Form::select('branch_id_fk', array(''=>'Select any'), $data['model']->branch_id_fk, ['class' => 'form-control getUser hr-select2', 'id' => 'branch_id_fk']) !!}

{{ $errors->error->first('branch_id_fk') }}

{!! Form::label('users_id_fk', $data['attributes']['users_id_fk'], ['class' => 'col-sm-2 control-label']) !!}
{!! Form::select('users_id_fk', [''=>'Select any'], $data['model']->users_id_fk, ['class' => 'form-control', 'id' => 'users_id_fk']) !!}

{{ $errors->error->first('users_id_fk') }}

{!! Form::label('loan_type', 'Loan Type', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::select('loan_type', ['Regular'=>'Regular','Opening'=>'Opening'], '', ['class' => 'form-control', 'id' => 'loan_type']) !!}

{{ $errors->error->first('loan_type') }}

{!! Form::label('loan_number', $data['attributes']['loan_number'], ['class' => 'col-sm-2 control-label']) !!}
{!! Form::select('loan_number', [''=>'Select any'], '', ['class' => 'form-control', 'id' => 'loan_number']) !!}

{{ $errors->error->first('loan_number') }}

{!! Form::label('settlement_percentage', 'Settlement Percentage', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::text('settlement_percentage', '', ['class' => 'form-control', 'id' => 'settlement_percentage', 'readonly'=>'readonly']) !!}

{{ $errors->error->first('settlement_percentage') }}

{!! Form::label('principal_amount', 'Principal Amount', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::text('principal_amount', '', ['class' => 'form-control', 'id' => 'principal_amount', 'readonly'=>'readonly']) !!}

{{ $errors->error->first('principal_amount') }}

{!! Form::label('settlement_amount', 'Early Settlement Fee', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::text('settlement_amount', '', ['class' => 'form-control', 'id' => 'settlement_amount', 'readonly'=>'readonly']) !!}

{{ $errors->error->first('settlement_amount') }}

{!! Form::label('interest_amount', 'Interest Amount', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::text('interest_amount', '', ['class' => 'form-control', 'id' => 'interest_amount', 'readonly'=>'readonly']) !!}

{{ $errors->error->first('interest_amount') }}

{!! Form::label('settlement_date', 'Settlement Date', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::text('settlement_date', '', ['class' => 'form-control datepicker', 'id' => 'settlement_date']) !!}

{{ $errors->error->first('settlement_date') }}

{!! Form::label('total_amount', 'Total Amount', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::text('total_amount', '', ['class' => 'form-control', 'id' => 'total_amount', 'readonly'=>'readonly']) !!}

{{ $errors->error->first('total_amount') }}

{!! Form::submit('Submit', ['id' => 'add', 'class' => 'btn btn-info']); !!} Close
{!! Form::close() !!}
@section('footerAssets')