@extends('organizations.layouts.default') @section('title') / Required Documents @endsection @section('content')
{!! htmlScriptTagJsApi() !!}

Tender Details
Tender Number: {{ $tender->tender_number }}
Title: {{ $tender->title }}
Start Date: {{ \Carbon\Carbon::parse($tender->start_date)->format('Y-m-d') }}
End Date: {{ \Carbon\Carbon::parse($tender->end_date)->format('Y-m-d') }}
Who can Apply ?: {{ config('dropdown.can_apply.' . $tender->can_apply) }}
Apply Method : {{ $tender->apply_online == 1 ? 'Online,' : '' }} {{ $tender->apply_offline == 1 ? 'Offline,' : '' }} {{ $tender->apply_email == 1 ? 'Email' : '' }}
@if ($tender->apply_offline == 1)
Submission Address : {{ $tender->submission_address }}
@endif @if ($tender->apply_email == 1)
Submission Email : {{ $tender->submission_email }}
@endif
Required Documents
@if ($tender->form_type == 1)

Please upload documents or provide your document url

@foreach ($tender->documents as $doc) @php $docs = $application->documents->where('document_title', $doc->document_title)->first(); @endphp
* @if ($docs) @endif
@if ($docs && $docs->document_file) File @endif
@endforeach
@endif {{-- @if ($has_applied)
@foreach ($tender->documents as $doc)
{{ $doc->document_title }}
@endforeach
@else --}} {{ html()->modelForm($tender, 'POST', route('organization.tenders.applications.store-doc', $application->id))->id('form-validator')->acceptsFiles()->open() }}
{{ ym_textarea([ 'label' => 'Application Details', 'name' => 'cover_letter', 'required' => true, 'editor' => 'editor', ]) }}
@if ($tender->form_type == 1 && $tender->separate_proposal == 1)
{{ ym_file([ 'label' => 'Technical Proposal', 'name' => 'tc_document_file', ]) }} {{ ym_file([ 'label' => 'Financial Proposal', 'name' => 'fc_document_file', ]) }}
@endif {{-- @if ($tender->form_type == 1)
Other Documents
@foreach ($tender->documents as $doc)
{{ ym_input([ 'label' => __('form.Document Title'), 'type' => 'text', 'name' => 'document_title[]', 'required' => $doc->is_require == 1 ? true : '', 'value' => $doc->document_title, 'readonly' => 'readonly', ]) }} {{ ym_file([ 'label' => __('form.Document File'), 'name' => 'document_file[]', ]) }} {{ ym_input([ 'label' => __('form.Document External Link'), 'type' => 'text', 'name' => 'document_external_link[]', ]) }} {{ ym_input([ 'label' => __('form.Remarks'), 'type' => 'text', 'name' => 'remarks[]', ]) }}
@endforeach @endif --}}
{{ html()->closeModelForm() }} {{-- @endif --}}
@endsection