@php $machineType = $form->type_of_machine; $movement = $form->machineSpecs['movement_type'] ?? ''; $withMedia = $withMedia ?? true; $total = $withMedia ? 5 : 4; $wizardSteps = [ 1 => ['icon' => 'tabler-info-circle', 'label' => __('General')], 2 => ['icon' => 'tabler-settings-2', 'label' => __('Specifications')], 3 => ['icon' => 'tabler-currency-dollar', 'label' => __('Pricing')], 4 => ['icon' => 'tabler-file-description', 'label' => __('Details')], ]; if ($withMedia) { $wizardSteps[5] = ['icon' => 'tabler-photo', 'label' => __('Media')]; } @endphp