44 lines
2.2 KiB
PHP
Raw Normal View History

2020-12-24 01:28:38 +03:00
<div class="row">
<div class="col-sm-6 col-md-6 col-lg-6 col-xl-6">
@if (!$hideContact)
<div class="row">
<x-select-contact-card
type="{{ $contactType }}"
:contact="$contact"
:contacts="$contacts"
:search_route="$contactSearchRoute"
:create_route="$contactCreateRoute"
error="form.errors.get('contact_name')"
:text-add-contact="$textAddContact"
:text-create-new-contact="$textCreateNewContact"
:text-edit-contact="$textEditContact"
:text-contact-info="$textContactInfo"
:text-choose-different-contact="$textChooseDifferentContact"
/>
2020-12-24 01:28:38 +03:00
</div>
@endif
</div>
<div class="col-sm-6 col-md-6 col-lg-6 col-xl-6">
<div class="row">
@if (!$hideIssuedAt)
2021-06-18 11:35:36 +03:00
{{ Form::dateGroup('issued_at', trans($textIssuedAt), 'calendar', ['id' => 'issued_at', 'class' => 'form-control datepicker', 'required' => 'required', 'show-date-format' => company_date_format(), 'date-format' => 'Y-m-d', 'autocomplete' => 'off', 'data-value-control' => true, 'change' => 'setDueMinDate'], $issuedAt) }}
2020-12-24 01:28:38 +03:00
@endif
@if (!$hideDocumentNumber)
{{ Form::textGroup('document_number', trans($textDocumentNumber), 'file', ['required' => 'required'], $documentNumber) }}
2020-12-24 01:28:38 +03:00
@endif
@if (!$hideDueAt)
2021-06-18 11:35:36 +03:00
{{ Form::dateGroup('due_at', trans($textDueAt), 'calendar', ['id' => 'due_at', 'class' => 'form-control datepicker', 'required' => 'required', 'show-date-format' => company_date_format(), 'date-format' => 'Y-m-d', 'autocomplete' => 'off', 'min-date' => 'form.issued_at', 'min-date-dynamic' => 'min_due_date', 'data-value-control' => true, 'data-value-min' => true], $dueAt) }}
@else
{{ Form::hidden('due_at', old('issued_at', $issuedAt), ['id' => 'due_at', 'v-model' => 'form.issued_at']) }}
2020-12-24 01:28:38 +03:00
@endif
@if (!$hideOrderNumber)
{{ Form::textGroup('order_number', trans($textOrderNumber), 'shopping-cart', [], $orderNumber) }}
2020-12-24 01:28:38 +03:00
@endif
</div>
</div>
</div>