@include('organizations.layouts.partials.breadcrumb')
{{ html()->modelForm(
$model,
getMethod($model),
getMethod($model) == 'POST'
? route('organization.' . $route . '.store')
: route('organization.' . $route . '.update', $model->id),
)->id('form-validator')->acceptsFiles()->open() }}
{{ ym_input([
'label' => __('form.Tender Number'),
'type' => 'text',
'name' => 'tender_number',
'required' => true,
'value' => $model->tender_number,
'id' => 'rfpNumber',
]) }}
{{ ym_input([
'label' => __('form.Tender Title'),
'type' => 'text',
'name' => 'title',
'required' => true,
'value' => $model->title,
'id' => 'rfp_title',
]) }}
{{-- {{ ym_input([
'label' => __('form.Tender Location'),
'type' => 'text',
'name' => 'tender_location',
'required' => true,
'value' => $model->tender_location,
]) }} --}}
{{ ym_select2([
'label' => __('form.Working Areas (max 3)'),
'name' => 'working_areas_id',
'required' => true,
'value' => $model->workingAreas->pluck('id') ?? null,
'options' => $working_area_helper->dropdown(),
'id' => 'select-area',
'placeholder' => 'Select',
]) }}
{{ ym_date([
'label' => __('form.Start Date'),
'name' => 'start_date',
'required' => true,
'value' => $model->start_date,
'min' => now()->format('Y-m-d'),
'id' => 'sdate',
]) }}
{{ ym_input([
'type' => 'datetime',
'label' => __('form.End Date'),
'name' => 'end_date',
'required' => true,
'value' => $model->end_date,
'min' => now()->format('Y-m-d'),
'id' => 'edate',
]) }}
{{-- {{ ym_select([
'label' => __('form.Who can Apply ?'),
'name' => 'can_apply',
'required' => true,
'value' => $model->can_apply,
'options' => config('dropdown.can_apply'),
'placeholder' => 'Select',
]) }} --}}
{{ ym_select([
'label' => __('form.Opportunity Type ?'),
'name' => 'opportunity_type_id',
'required' => true,
'value' => $model->opportunity_type_id,
'options' => config('dropdown.opportunity_type'),
'placeholder' => 'Select',
'id' => 'rfpTypeId',
]) }}
{{ ym_select([
'label' => __('form.Need separate technical & financial proposal ?'),
'name' => 'separate_proposal',
'required' => true,
'value' => $model->separate_proposal,
'options' => config('dropdown.yes_no'),
'placeholder' => 'Select',
]) }}
{{ ym_select([
'label' => __('form.Want to set evaluation criteria ?'),
'name' => 'evaluation_criteria_set',
'required' => true,
'value' => $model->evaluation_criteria_set,
'options' => config('dropdown.yes_no'),
'placeholder' => 'Select',
]) }}
@error('submission_email')
{{ $message }}
@enderror
@error('submission_address')
{{ $message }}
@enderror
{{ ym_select([
'label' => __('form.Who can Apply ?'),
'type' => 'select',
'name' => 'can_apply',
'required' => true,
'placeholder' => 'Select',
'id' => 'select-option',
'options' => config('dropdown.can_apply'),
]) }}
{{ ym_input(['label' => __('form.Document Charge'), 'type' => 'number', 'name' => 'document_charge', 'id' => 'name']) }}
{{ ym_file(['label' => __('form.Document'), 'type' => 'text', 'name' => 'paid_document', 'id' => 'address']) }}
{{ ym_textarea([
'label' => __('form.Tender Details'),
'name' => 'tender_details',
'editor' => 'editor',
'value' => $model->tender_details,
'enlarge' => true,
'id' => 'rfp_details',
]) }}
{{-- {{ ym_textarea([
'label' => __('form.Criteria Details'),
'name' => 'criteria_details',
'editor' => 'editor',
'value' => $model->criteria_details,
]) }}
{{ ym_textarea([
'label' => __('form.Evaluation Details'),
'name' => 'evaluation_details',
'editor' => 'editor',
'value' => $model->evaluation_details,
]) }}
{{ ym_textarea([
'label' => __('form.Apply Instruction'),
'name' => 'apply_instruction',
'editor' => 'editor',
'value' => $model->apply_instruction,
]) }} --}}
{{ html()->closeModelForm() }}