{!! Form::hidden('id', null, ['id' => 'id']) !!} {!! Form::hidden('client_id', null, ['id' => 'client_id']) !!}
@if (isset($active_record))
Agreement Type:
{{ $facility->agreement_type->description }}
Created at:
{!! DisplayHelper::formatDateTime($facility->created_at) !!}
@if ($facility->confirmed)
confirmed: {!! DisplayHelper::formatDate($facility->confirm_date) !!}
@endif @if ($facility->unconfirmed)
unconfirmed: {!! DisplayHelper::formatDate($facility->unconfirm_date) !!}
@endif

@endif
{!! Form::label('agreement_type_id', 'Agreement Type:', ['class' => 'control-label col-sm-2']) !!}
{!! Form::fancySelect('agreement_type_id', $agreement_type_list, ['class' => 'form-control', 'required' => 'required', 'v-bind:disabled' => 'disable_input'], ['discount']) !!}
{!! Form::label('implement_date', 'Implementation Date:', ['class' => 'control-label col-sm-2']) !!}
{!! Form::formattedDate('implement_date', ['class' => 'form-control', 'required', 'type'=> 'text', 'v-bind:disabled' => 'disable_input']) !!}
{!! Form::label('review_date', 'Review Date:', ['class' => 'control-label col-sm-2']) !!}
{!! Form::formattedDate('review_date', ['class' => 'form-control', 'type'=> 'text', 'v-bind:disabled' => 'disable_input']) !!}
{!! Form::label('facility_limit', 'Limit:', ['class' => 'control-label col-sm-2']) !!}
{!! Form::text('facility_limit', null, ['class' => 'form-control', 'type' => 'number', 'required', 'v-bind:disabled' => 'disable_input']) !!}
{!! Form::label('retention_percent', 'Retention %:', ['class' => 'control-label col-sm-2']) !!}
{!! Form::text('retention_percent', null, ['class' => 'form-control', 'type' => 'number', 'v-bind:disabled' => 'disable_input']) !!}
{!! Form::label('discount_rate', 'Discount Rate:', ['class' => 'control-label col-sm-2']) !!}
{!! Form::text('discount_rate', null, ['class' => 'form-control', 'type' => 'number', 'min' => 0, 'max' => 100, 'required', 'v-bind:disabled' => 'disable_input']) !!}
{!! Form::label('interest_rate', 'Interest Rate:', ['class' => 'control-label col-sm-2']) !!}
{!! Form::text('interest_rate', null, ['class' => 'form-control', 'type' => 'number', 'min' => 0, 'max' => 100, 'required' => 'required', 'v-bind:disabled' => 'disable_input']) !!}

@if ($can_update)
{!! Form::submit($submitButtonText, ['class' => 'btn btn-success btn-sm']) !!}
@endif