@extends('organizations.layouts.default') @inject('working_area_helper', 'App\Helpers\WorkingAreaHelper') @section('content') {!! htmlScriptTagJsApi() !!}
@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_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_input([ 'label' => __('form.Tender Location'), 'type' => 'text', 'name' => 'tender_location', 'required' => true, 'value' => $model->tender_location, ]) }} --}} {{ ym_date([ 'label' => __('form.Start Date'), 'type' => 'date', 'name' => 'start_date', 'required' => true, 'value' => $model->start_date, 'min' => now()->format('Y-m-d'), 'id' => 'sdate', ]) }} {{ ym_input([ 'label' => __('form.End Date'), 'type' => 'datetime', 'name' => 'end_date', 'required' => true, 'value' => $model->end_date, 'min' => now()->format('Y-m-d'), 'id' => 'edate', ]) }} {{ 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', ]) }}
apply_online ?? '') ? 'checked' : '' }}>
apply_email ?? '') ? 'checked' : '' }}>
apply_offline ?? '') ? 'checked' : '' }}>
{{ ym_select([ 'label' => __('form.Who can Apply ?'), 'type' => 'select', 'name' => 'can_apply', 'required' => true, 'placeholder' => 'Select', 'id' => 'select-option', 'options' => config('dropdown.can_apply'), ]) }}
Current file
@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_textarea([ 'label' => __('form.Tender Details'), 'name' => 'tender_details', 'editor' => 'editor', 'value' => $model->tender_details, 'enlarge' => true, 'id' => 'rfp_details', ]) }}
{{ __('form.Cancel') }}
{{ html()->closeModelForm() }}
@endsection