{{-- Name --}}
{{ Form::label('name', __('Name'), ['class' => 'col-form-label']) }} {!! Form::text('name', null, ['class' => 'form-control', 'placeholder' => __('Name')]) !!}
{{ Form::label('stage', __('Stage'), ['class' => 'col-form-label']) }} @php $selectedStageId = isset($stage->id) ? $stage->id : null; @endphp {!! Form::select('stage_id', $stages, $selectedStageId, ['class' => 'form-control', 'data-kt-select2' => 'true', 'placeholder' => 'Select Stage', 'data-tags' => 'true']) !!}
{{ Form::label('estimated_cost', __('Cost'), ['class' => 'col-form-label']) }} {!! Form::number('estimated_cost', null, ['class' => 'form-control', 'placeholder' => __('Cost')]) !!}
{{-- start date --}}
{{ Form::label('start_date', __('Start Date'), ['class' => 'col-form-label']) }} {{-- {!! Form::date('start_date', $phase->start_date, ['class' => 'form-control flatpickr', 'id' => 'start_date', 'data-flatpickr' => '{"altFormat": "F j, Y", "minDate":"'. $contract->start_date .'", "maxDate":"'. $contract->end_date .'", "dateFormat": "Y-m-d"}', 'placeholder' => __('Start Date')]) !!} --}} {!! Form::date('start_date', $phase->start_date, ['class' => 'form-control flatpickr', 'id' => 'start_date', 'placeholder' => __('Start Date'), 'x-model' => 'cal_start_date']) !!}
{{-- due date --}}
{{ Form::label('due_date', __('Due Date'), ['class' => 'col-form-label']) }} {{-- {!! Form::date('due_date', $phase->due_date, ['class' => 'form-control flatpickr', 'id' => 'phase_end_date', 'data-flatpickr' => '{"altFormat": "F j, Y", "minDate":"'. $contract->start_date .'", "maxDate":"'. $contract->end_date .'", "dateFormat": "Y-m-d"}', 'placeholder' => __('Due Date')]) !!} --}} {!! Form::date('due_date', $phase->due_date, ['class' => 'form-control flatpickr', 'id' => 'phase_end_date', 'placeholder' => __('Due Date'), 'x-model' => 'cal_end_date']) !!}
@dd('t')
{!! Form::label('description', 'Description', ['class' => 'col-form-label']) !!} {!! Form::textarea('description', null, ['class' => 'form-control', 'rows' => 5]) !!}