
<?php $__env->startSection('title',__('Edit user')); ?>
<?php $__env->startSection('content'); ?>
    <style>
        .form-control{
            border-radius: 10px;
            border: 1px solid #7b7bff;
            box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;        }
        .form-label{
            font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
        }
        .form-select{
            background-image: none !important;
        }
        .layout-top-spacing{
            margin: 20px;
            border-radius: 15px;
            box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
        }
    </style>
    <div class="card layout-top-spacing">
        <div class="card-header d-flex justify-content-between align-items-center" style="background-color: #ff2a0e !important">
            <h5 class="m-0" style="color: white"><?php echo app('translator')->get('Edit user'); ?></h5>
            <a class="btn btn-dark" href="<?php echo e(route('admin:users.index')); ?>"><?php echo app('translator')->get('Back'); ?></a>
        </div>
        <div class="card-body">
            <form class="<?php echo \Illuminate\Support\Arr::toCssClasses(["row needs-validation","was-validated" => $errors->any()]); ?>" action="<?php echo e(route('admin:users.update',$user->getAttribute('id'))); ?>" method="post" novalidate>
                <?php echo csrf_field(); ?>
                <?php echo method_field('PUT'); ?>

                <?php if (isset($component)) { $__componentOriginald8da589641248edb875bf26e0082aa53 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginald8da589641248edb875bf26e0082aa53 = $attributes; } ?>
<?php $component = App\View\Components\Admin\Form\Input::resolve(['label' => __('Name'),'name' => 'name','customDivClass' => 'col-12 col-sm-3','value' => old('name',$user->getAttribute('name')),'required' => true] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('admin.form.input'); ?>
<?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\Admin\Form\Input::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginald8da589641248edb875bf26e0082aa53)): ?>
<?php $attributes = $__attributesOriginald8da589641248edb875bf26e0082aa53; ?>
<?php unset($__attributesOriginald8da589641248edb875bf26e0082aa53); ?>
<?php endif; ?>
<?php if (isset($__componentOriginald8da589641248edb875bf26e0082aa53)): ?>
<?php $component = $__componentOriginald8da589641248edb875bf26e0082aa53; ?>
<?php unset($__componentOriginald8da589641248edb875bf26e0082aa53); ?>
<?php endif; ?>

                <?php if (isset($component)) { $__componentOriginald8da589641248edb875bf26e0082aa53 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginald8da589641248edb875bf26e0082aa53 = $attributes; } ?>
<?php $component = App\View\Components\Admin\Form\Input::resolve(['label' => __('Email Address'),'name' => 'email','type' => 'email','customDivClass' => 'col-12 col-sm-3','value' => old('email',$user->getAttribute('email')),'required' => true] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('admin.form.input'); ?>
<?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\Admin\Form\Input::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginald8da589641248edb875bf26e0082aa53)): ?>
<?php $attributes = $__attributesOriginald8da589641248edb875bf26e0082aa53; ?>
<?php unset($__attributesOriginald8da589641248edb875bf26e0082aa53); ?>
<?php endif; ?>
<?php if (isset($__componentOriginald8da589641248edb875bf26e0082aa53)): ?>
<?php $component = $__componentOriginald8da589641248edb875bf26e0082aa53; ?>
<?php unset($__componentOriginald8da589641248edb875bf26e0082aa53); ?>
<?php endif; ?>

                <?php if (isset($component)) { $__componentOriginal7b099f880a33b5fbbd5df8fd87ae25ac = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal7b099f880a33b5fbbd5df8fd87ae25ac = $attributes; } ?>
<?php $component = App\View\Components\Admin\Form\Select::resolve(['label' => __('Role'),'name' => 'role','customDivClass' => 'col-12 col-sm-3','selected' => old('role', in_array($user->getRoleNames()->first(), array_keys($roles))),'options' => $roles] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('admin.form.select'); ?>
<?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\Admin\Form\Select::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal7b099f880a33b5fbbd5df8fd87ae25ac)): ?>
<?php $attributes = $__attributesOriginal7b099f880a33b5fbbd5df8fd87ae25ac; ?>
<?php unset($__attributesOriginal7b099f880a33b5fbbd5df8fd87ae25ac); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal7b099f880a33b5fbbd5df8fd87ae25ac)): ?>
<?php $component = $__componentOriginal7b099f880a33b5fbbd5df8fd87ae25ac; ?>
<?php unset($__componentOriginal7b099f880a33b5fbbd5df8fd87ae25ac); ?>
<?php endif; ?>

                <?php if (isset($component)) { $__componentOriginald8da589641248edb875bf26e0082aa53 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginald8da589641248edb875bf26e0082aa53 = $attributes; } ?>
<?php $component = App\View\Components\Admin\Form\Input::resolve(['label' => __('Password'),'name' => 'password','customDivClass' => 'col-12 col-sm-3','value' => old('password')] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('admin.form.input'); ?>
<?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\Admin\Form\Input::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginald8da589641248edb875bf26e0082aa53)): ?>
<?php $attributes = $__attributesOriginald8da589641248edb875bf26e0082aa53; ?>
<?php unset($__attributesOriginald8da589641248edb875bf26e0082aa53); ?>
<?php endif; ?>
<?php if (isset($__componentOriginald8da589641248edb875bf26e0082aa53)): ?>
<?php $component = $__componentOriginald8da589641248edb875bf26e0082aa53; ?>
<?php unset($__componentOriginald8da589641248edb875bf26e0082aa53); ?>
<?php endif; ?>

                <?php if (isset($component)) { $__componentOriginal27adbb1ef2223bb0b019da2982a3e879 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal27adbb1ef2223bb0b019da2982a3e879 = $attributes; } ?>
<?php $component = App\View\Components\Admin\Form\SubmitButton::resolve(['buttonText' => 'Update'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('admin.form.submit-button'); ?>
<?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\Admin\Form\SubmitButton::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal27adbb1ef2223bb0b019da2982a3e879)): ?>
<?php $attributes = $__attributesOriginal27adbb1ef2223bb0b019da2982a3e879; ?>
<?php unset($__attributesOriginal27adbb1ef2223bb0b019da2982a3e879); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal27adbb1ef2223bb0b019da2982a3e879)): ?>
<?php $component = $__componentOriginal27adbb1ef2223bb0b019da2982a3e879; ?>
<?php unset($__componentOriginal27adbb1ef2223bb0b019da2982a3e879); ?>
<?php endif; ?>

            </form>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('app.admin.layout.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/menyum/durrem.menyum.az/resources/views/app/admin/pages/users/edit-user.blade.php ENDPATH**/ ?>