@section('scripts')
@parent
@endsection
{!! Form::label('quotation_id', __('models/lpoins.singular').':') !!}
{!! Form::text('lpoin', $lpoin , ['class' => ($errors->has('date')) ? 'form-control is-invalid' : 'form-control' , 'readonly' => 'readonly' ]) !!}
@if ($errors->has('quotation_id'))
{{ $errors->first('quotation_id') }}
@endif
{!! Form::label('subject', __('models/projects.fields.subject').':') !!}
{!! Form::text('subject', null, ['class' => ($errors->has('subject')) ? 'form-control is-invalid' : 'form-control']) !!}
@if ($errors->has('subject'))
{{ $errors->first('subject') }}
@endif
{!! Form::label('user_id', __('models/projects.fields.user_id').':') !!}
{!! Form::select('user_id', $users, null, ['class' => ($errors->has('user_id')) ? 'form-control is-invalid' : 'form-control' ,'id'=>'user_id']) !!}
@if ($errors->has('user_id'))
{{ $errors->first('user_id') }}
@endif
{!! Form::label('labour_charges', __('models/projects.fields.labour_charges').':') !!}
{!! Form::text('labour_charges', null, ['class' => ($errors->has('labour_charges')) ? 'form-control is-invalid' : 'form-control']) !!}
@if ($errors->has('labour_charges'))
{{ $errors->first('labour_charges') }}
@endif
{!! Form::label('material_charges', __('models/projects.fields.material_charges').':') !!}
{!! Form::text('material_charges', null, ['class' => ($errors->has('material_charges')) ? 'form-control is-invalid' : 'form-control']) !!}
@if ($errors->has('material_charges'))
{{ $errors->first('material_charges') }}
@endif
{!! Form::label('project_source', __('models/projects.fields.project_source').':') !!}
{!! Form::text('project_source', null, ['class' => ($errors->has('project_source')) ? 'form-control is-invalid' : 'form-control']) !!}
@if ($errors->has('project_source'))
{{ $errors->first('project_source') }}
@endif
{!! Form::label('project_estimation', __('models/projects.fields.project_estimation').':') !!}
{!! Form::text('project_estimation', null, ['class' => ($errors->has('project_estimation')) ? 'form-control is-invalid' : 'form-control']) !!}
@if ($errors->has('project_estimation'))
{{ $errors->first('project_estimation') }}
@endif
{!! Form::label('category', 'Project Category') !!}
{!! Form::select('category', ['normal' => 'Normal', 'amc' => 'AMC'], old('category', $project->category), ['class' => 'form-control', 'id' => 'project_category','disabled'=>true]) !!}
{!! Form::hidden('category', $project->category) !!}
{!! Form::label('visits', 'Number of Visits') !!}
{!! Form::number('visits', old('visits', $project->visits ?? 4), ['class' => 'form-control', 'min' => 4, 'max' => 12,'readonly'=>true]) !!}
{!! Form::hidden('visits', $project->visits ?? 4) !!}
{!! Form::label('note', __('models/projects.fields.note').':') !!}
{!! Form::textarea('note', null, ['class' => 'form-control']) !!}