@include('layouts.components.inputs_v2', [
'input_type' => 'number_spinner',
'input_id' => 'total-' .$cycle->id,
'label' => 'Gesamteinheiten',
'value' => $cycle->receiver ?? 1,
'disabled' => $disabled,
])
@inputField([
'input_type' => 'ui_col_select',
'input_id' => 'tooth_color',
'label' => 'Zahnfarbe',
'placeholder' => 'bitte eingeben...',
'value' => $form_metas->tooth_color ?? '',
'disabled' => $disabled,
'allowAdditions' => true,
'options' => ['row1' => 'keine', 'row2' => ['col1' => [ 'A1', 'A2', 'A3', 'A3.5', 'A4'], 'col2' => [ 'B1', 'B2', 'B3', 'B4'], 'col3' => [ 'C1', 'C2', 'C3', 'C4'], 'col4' => [ 'D2', 'D3', 'D4']]]
])
@inputField([
'input_type' => 'checkbox',
'input_id' => 'glaze',
'check_label' => 'Glasur',
'value' => (int) ($form_metas->glaze ?? 0),
'margin_top' => 35,
'label_class' => '',
'disabled' => $disabled,
])
@inputField([
'input_id' => 'filename',
'label' => 'Dateiname',
'value' => $form_metas->filename ?? "",
'disabled' => $disabled,
])
@inputField([
'input_type' => 'ui_select',
'input_id' => 'scanner',
'label' => 'Scanner',
'placeholder' => 'wählen...',
'value' => $form_metas->scanner ?? '',
'disabled' => $disabled,
'options' => ['D2000_L', 'D2000_R', 'Intraoral']
])
@inputField([
'input_type' => 'ui_select',
'input_id' => 'shipping_receipt',
'label' => 'Versandeingang',
'placeholder' => 'bitte wählen...',
'value' => $form_metas->shipping_receipt ?? '',
'disabled' => $disabled,
'options' => [
['value' => 1, 'label' => 'Selbstanlieferung im Sammelpaket' ],
['value' => 2, 'label' => 'UPS-Abholung' ],
['value' => 3, 'label' => 'Fahrer' ]
]
])
@php
$shipping_methodes = \App\Models\Shipping_methodes::orderBy('typ')->get();
@endphp
@inputField([
'input_type' => 'ui_select',
'input_id' => 'shipping_service',
'label' => 'Versandausgang',
'placeholder' => 'bitte wählen...',
'value' => $form_metas->shipping_service ?? '',
'disabled' => $disabled,
'options' => $shipping_methodes->groupBy(function($date) {
return $date->typ ? $date->typ : 'Sonstige'; // Wenn 'typ' leer ist, setze es auf 'Sonstige'
})->map(function($group) {
return $group->map(function($item) {
return [
'label' => $item->label,
'value' => $item->id,
'hidden_filter' => $item->ArtNr,
];
});
})->reverse()->toArray(),
])
@inputField([
'input_type' => 'ui_select',
'input_id' => 'text',
'label' => 'Text',
'placeholder' => 'please design,...',
'value' => $form_metas->text ?? '',
'disabled' => $disabled,
'options' => ['please design and send back', 'please design, place on blank and send back']
])