<?php
    $form = 'formID';
?>

<?php if (isset($component)) { $__componentOriginal1d82783c246b53da9bd54777b9e76c22 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal1d82783c246b53da9bd54777b9e76c22 = $attributes; } ?>
<?php $component = App\View\Components\Backoffice\BackLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('backoffice.back-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Backoffice\BackLayout::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['title' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($title),'breadcrumb' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($breadcrumb)]); ?>

    <!--begin::Container-->
    <div id="kt_content_container" class="container">
        <div class="card" id="kt_modal_create_app">
            <!--begin::Modal body-->
            <div class="card-body py-lg-10 px-lg-10">
                <!--begin::Stepper-->
                <div class="stepper stepper-pills stepper-column d-flex flex-column flex-xl-row flex-row-fluid"
                    id="kt_modal_create_app_stepper">
                    <!--begin::Aside-->
                    <div class="d-flex justify-content-center justify-content-xl-start flex-row-auto w-100 w-xl-300px">
                        <!--begin::Nav-->
                        <div class="stepper-nav ps-lg-10">
                            <!--begin::Step 1-->
                            <div class="stepper-item current" data-kt-stepper-element="nav">
                                <!--begin::Wrapper-->
                                <div class="stepper-wrapper">
                                    <!--begin::Icon-->
                                    <div class="stepper-icon w-40px h-40px">
                                        <i class="ki-outline ki-check stepper-check fs-2"></i>
                                        <span class="stepper-number">1</span>
                                    </div>
                                    <!--end::Icon-->
                                    <!--begin::Label-->
                                    <div class="stepper-label">
                                        <h3 class="stepper-title">Identification</h3>
                                        <div class="stepper-desc">Identification de l'équipement</div>
                                    </div>
                                    <!--end::Label-->
                                </div>
                                <!--end::Wrapper-->
                                <!--begin::Line-->
                                <div class="stepper-line h-40px"></div>
                                <!--end::Line-->
                            </div>
                            <!--end::Step 1-->
                            <!--begin::Step 2-->
                            <div class="stepper-item" data-kt-stepper-element="nav">
                                <!--begin::Wrapper-->
                                <div class="stepper-wrapper">
                                    <!--begin::Icon-->
                                    <div class="stepper-icon w-40px h-40px">
                                        <i class="ki-outline ki-check stepper-check fs-2"></i>
                                        <span class="stepper-number">2</span>
                                    </div>
                                    <!--begin::Icon-->
                                    <!--begin::Label-->
                                    <div class="stepper-label">
                                        <h3 class="stepper-title">Description</h3>
                                        <div class="stepper-desc">
                                            Description de la panne
                                        </div>
                                    </div>
                                    <!--begin::Label-->
                                </div>
                                <!--end::Wrapper-->
                                <!--begin::Line-->
                                <div class="stepper-line h-40px"></div>
                                <!--end::Line-->
                            </div>
                            <!--end::Step 2-->
                            <!--begin::Step 3-->
                            
                            <!--end::Step 3-->
                            <!--begin::Step 4-->
                            
                            <!--end::Step 4-->
                            <!--begin::Step 5-->
                            
                            <!--end::Step 5-->
                        </div>
                        <!--end::Nav-->
                    </div>
                    <!--begin::Aside-->
                    <!--begin::Content-->
                    <div class="flex-row-fluid py-lg-5 px-lg-15">
                        <!--begin::Form-->
                        <form class="form <?php echo e($form); ?>" novalidate="novalidate" id="kt_modal_create_app_form">
                            
                            <!--begin::Step 1-->
                            <div class="current" data-kt-stepper-element="content">
                                <div class="w-100">
                                    <!--begin::Input group-->
                                    <div class="fv-row mb-10 row">
                                        <div class="col-md-6">
                                            <!--begin::Label-->
                                            <label class="d-flex align-items-center fs-5 fw-semibold mb-2">
                                                <span class="required">Service</span>
                                                </span>
                                            </label>
                                            <!--end::Label-->
                                            <select class="form-select form-select-solid" id="services"
                                                data-control="select2" data-placeholder="Choix..." name="serviceID">
                                                <option></option>
                                                <?php $__empty_1 = true; $__currentLoopData = $services; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $service): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                                    <option value="<?php echo e($service->id); ?>">
                                                        <?php echo e(ucfirst($service->name)); ?></option>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                                <?php endif; ?>
                                            </select>
                                        </div>
                                        <div class="col-md-6">
                                            <!--begin::Label-->
                                            <label class="d-flex align-items-center fs-5 fw-semibold mb-2">
                                                <span class="required">Équipement</span>
                                                </span>
                                            </label>
                                            <!--end::Label-->
                                            <select class="form-select form-select-solid" id="equipment"
                                                data-control="select2" data-placeholder="Choix..." name="equipmentID">
                                                <option></option>
                                            </select>
                                        </div>
                                    </div>
                                    <!--end::Input group-->
                                </div>
                            </div>
                            <!--end::Step 1-->
                            <!--begin::Step 2-->
                            <div data-kt-stepper-element="content">
                                <div class="w-100">
                                    <!--begin::Input group-->
                                    <div class="fv-row mb-5 row">
                                        <div class="col-md-6">
                                            <!--begin::Label-->
                                            <label class="d-flex align-items-center fs-5 fw-semibold mb-4">
                                                <span class="required">Type de panne</span>
                                            </label>
                                            <!--end::Label-->
                                            <select class="form-select form-select-solid" id="failuretype"
                                                data-control="select2" data-placeholder="Choix..." name="failuretypeID">
                                                <option></option>
                                                <?php $__empty_1 = true; $__currentLoopData = $failuretypes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $failuretype): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                                    <option value="<?php echo e($failuretype->id); ?>">
                                                        <?php echo e(ucfirst($failuretype->name)); ?></option>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                                <?php endif; ?>
                                            </select>
                                        </div>
                                        <div class="col-md-6">
                                            <!--begin::Label-->
                                            <label class="d-flex align-items-center fs-5 fw-semibold mb-4">
                                                <span class="required">Criticité</span>
                                            </label>
                                            <!--end::Label-->
                                            <select class="form-select form-select-solid" id="criticality"
                                                data-control="select2" data-placeholder="Choix..." name="criticalityID">
                                                <option></option>
                                                <?php $__empty_1 = true; $__currentLoopData = $criticalites; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $criticalite): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                                    <option value="<?php echo e($criticalite->id); ?>">
                                                        <?php echo e(ucfirst($criticalite->name)); ?></option>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                                <?php endif; ?>
                                            </select>
                                        </div>
                                    </div>
                                    <!--end::Input group-->

                                    <!--begin::Input group-->
                                    <div class="fv-row row mb-5">
                                        <div class="col-md-6">
                                            <!--begin::Label-->
                                            <label class="d-flex align-items-center fs-5 fw-semibold mb-4">
                                                <span class="required">Description de la panne</span>
                                            </label>
                                            <!--end::Label-->
                                            <textarea style="resize: none" name="failuredescription" id="failuredescription"
                                                class="form-control form-control-lg form-control-solid" cols="7" rows="7"></textarea>
                                        </div>

                                        <div class="col-md-6">
                                            <!--begin::Label-->
                                            <label class="d-flex align-items-center fs-5 fw-semibold mb-4">
                                                <span>Diagnostic referent technique</span>
                                            </label>
                                            <!--end::Label-->
                                            <textarea style="resize: none" name="diagnostic" id="diagnostic" class="form-control form-control-lg form-control-solid"
                                                cols="7" rows="7"></textarea>
                                        </div>
                                    </div>
                                    <!--end::Input group-->

                                    <!--begin::Input group-->
                                    <div class="fv-row">
                                        <!--begin::Label-->
                                        <label class="d-flex align-items-center fs-5 fw-semibold mb-4">
                                            <span class="required">Quelques conditions de survenance de panne</span>
                                        </label>
                                        <!--end::Label-->
                                        
                                        <select class="form-select form-select-solid" id="occurencefault"
                                            data-control="select2" data-placeholder="Choix..." name="occurencefault">
                                            <option></option>
                                            <?php $__empty_1 = true; $__currentLoopData = $occurencefaults; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $occurencefault): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                                <option value="<?php echo e($occurencefault->id); ?>">
                                                    <?php echo e(ucfirst($occurencefault->name)); ?></option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                            <?php endif; ?>
                                        </select>
                                    </div>
                                    <!--end::Input group-->
                                </div>
                            </div>
                            <!--end::Step 2-->
                            <!--begin::Step 3-->
                            
                            <!--end::Step 3-->
                            <!--begin::Step 4-->
                            
                            <!--end::Step 4-->
                            <!--begin::Step 5-->
                            
                            <!--end::Step 5-->
                            <!--begin::Actions-->
                            <div class="d-flex flex-stack pt-10">
                                <!--begin::Wrapper-->
                                <div class="me-2">
                                    <button type="button" class="btn btn-lg btn-light-primary me-3"
                                        data-kt-stepper-action="previous">
                                        <i class="ki-outline ki-arrow-left fs-3 me-1"></i>Retour
                                    </button>
                                </div>
                                <!--end::Wrapper-->
                                <!--begin::Wrapper-->
                                <div>
                                    <button type="button" class="btn btn-lg btn-primary"
                                        data-kt-stepper-action="submit">
                                        <span class="indicator-label">Envoyer
                                            <i class="ki-outline ki-arrow-right fs-3 ms-2 me-0"></i></span>
                                        <span class="indicator-progress">Please wait...
                                            <span
                                                class="spinner-border spinner-border-sm align-middle ms-2"></span></span>
                                    </button>
                                    <button type="button" class="btn btn-lg btn-primary"
                                        data-kt-stepper-action="next">
                                        Continuer
                                        <i class="ki-outline ki-arrow-right fs-3 ms-1 me-0"></i>
                                    </button>
                                </div>
                                <!--end::Wrapper-->
                            </div>
                            <!--end::Actions-->

                            <?php echo csrf_field(); ?>
                        </form>
                        <!--end::Form-->
                    </div>
                    <!--end::Content-->
                </div>
                <!--end::Stepper-->
            </div>
            <!--end::Modal body-->
            <!--end::Modal dialog-->
        </div>
    </div>
    <!--end::Container-->

 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal1d82783c246b53da9bd54777b9e76c22)): ?>
<?php $attributes = $__attributesOriginal1d82783c246b53da9bd54777b9e76c22; ?>
<?php unset($__attributesOriginal1d82783c246b53da9bd54777b9e76c22); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal1d82783c246b53da9bd54777b9e76c22)): ?>
<?php $component = $__componentOriginal1d82783c246b53da9bd54777b9e76c22; ?>
<?php unset($__componentOriginal1d82783c246b53da9bd54777b9e76c22); ?>
<?php endif; ?>
<?php /**PATH C:\laragon\www\helpdesk\resources\views/backoffice/tickets/new/form.blade.php ENDPATH**/ ?>