@php
$is_transformed['rating'] = [];
if ( empty($cycle->states()->where('state_type', 'um')->first()) ) {
$is_transformed['rating'] = [
'input_id' => "cycle-$cycle->id-rating",
'input_name' => "rating",
'count' => 5,
'value' => $cycle->rating,
'star_color' => '#fff',
];
}
@endphp
@includeIf('layouts.components.card_header', [
'title' => 'Zyklus Details',
'rating' => $is_transformed['rating'],
])
@includeIf('layouts.components.inputs_v2', [
'input_type' => 'icon_radio_slider',
'input_id' => "cycle-$cycle->id-type",
'input_name' => "type",
'label' => 'Auftrags Typ',
'radio_icon_width' => '70',
'value' => $cycle->type,
'options' => [
[
'option_value' => 'centric',
'option_label' => 'Labor',
'option_icon_name' => 'dental_labor',
'option_icon_class' => 'mt-3',
'default_checked' => $cycle->type === 'centric' ? true : false,
],
[
'option_value' => 'scan',
'option_label' => 'Modellanlieferung',
'option_icon_name' => 'dental (3)',
'option_icon_class' => 'mt-3',
'option_icon_width' => '50',
'default_checked' => $cycle->type === 'scan' ? true : false,
],
[
'option_value' => 'import',
'option_label' => 'Import',
'option_icon_name' => 'dental (1)',
'option_icon_class' => 'mt-3',
'option_icon_width' => '60',
'default_checked' => $cycle->type === 'import' ? true : false,
],
],
])
@includeIf('layouts.components.inputs_v2', [
'input_type' => 'select',
'input_id' => "cycle-$cycle->id-kind",
'input_name' => "kind",
'label' => 'Arbeitsart',
'placeholder' => !empty($cycle->type) ? enumGetValue(OrderTypeDefinition::class, $cycle->type) : '',
'value' => $cycle->kind ,
'options' => $all_options_calculation_table ?? [],
])
@includeIf('layouts.components.inputs_v2', [
'input_type' => 'textarea',
'input_id' => "cycle-$cycle->id-bemerkungen",
'input_name' => "bemerkungen",
'input_class' => 'text-danger',
'label' => 'Bemerkungen',
'input_attr' => 'rows=3',
'text_editor' => true,
'value' => ( !empty($cycle->status_description) ? $cycle->status_description ." | " : '' ) .$cycle->bemerkungen ,
])