<?php $__env->startSection('title', 'Edit Operator'); ?>
<?php $__env->startSection('page-title', 'Edit Operator'); ?>

<?php $__env->startSection('content'); ?>
<div class="row justify-content-center">
    <div class="col-lg-7 col-xl-6">
        <div class="d-flex align-items-center gap-3 mb-4">
            <a href="<?php echo e(route('admin.operators.index')); ?>" class="btn btn-sm px-3 py-2" style="background:#f0f2f5; border-radius:10px;">
                <i class="bi bi-arrow-left"></i>
            </a>
            <div>
                <h5 class="fw-bold mb-0">Edit Operator</h5>
                <p class="text-muted small mb-0">Update: <?php echo e($operator->name); ?></p>
            </div>
        </div>

        <div class="premium-card p-4 p-lg-5">
            <?php if($errors->any()): ?>
                <div class="alert border-0 mb-4" style="background:rgba(239,68,68,.08); color:#dc2626; border-radius:12px;">
                    <ul class="mb-0 small">
                        <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <li><?php echo e($error); ?></li>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </ul>
                </div>
            <?php endif; ?>

            <form method="POST" action="<?php echo e(route('admin.operators.update', $operator)); ?>">
                <?php echo csrf_field(); ?>
                <?php echo method_field('PUT'); ?>
                <div class="mb-3">
                    <label for="name" class="form-label small fw-semibold text-muted text-uppercase" style="letter-spacing:.5px;">Full Name <span class="text-danger">*</span></label>
                    <input type="text" class="form-control py-2 <?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" style="border-radius:10px;"
                           id="name" name="name" value="<?php echo e(old('name', $operator->name)); ?>" required>
                </div>
                <div class="mb-3">
                    <label for="email" class="form-label small fw-semibold text-muted text-uppercase" style="letter-spacing:.5px;">Email Address <span class="text-danger">*</span></label>
                    <input type="email" class="form-control py-2 <?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" style="border-radius:10px;"
                           id="email" name="email" value="<?php echo e(old('email', $operator->email)); ?>" required>
                </div>
                <div class="mb-4">
                    <label for="phone" class="form-label small fw-semibold text-muted text-uppercase" style="letter-spacing:.5px;">Phone Number</label>
                    <input type="text" class="form-control py-2 <?php $__errorArgs = ['phone'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" style="border-radius:10px;"
                           id="phone" name="phone" value="<?php echo e(old('phone', $operator->phone)); ?>">
                </div>

                <hr class="my-4" style="border-color:#e5e7eb;">

                <div class="mb-3">
                    <label for="password" class="form-label small fw-semibold text-muted text-uppercase" style="letter-spacing:.5px;">New Password</label>
                    <input type="password" class="form-control py-2 <?php $__errorArgs = ['password'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" style="border-radius:10px;"
                           id="password" name="password" placeholder="Leave blank to keep current">
                </div>
                <div class="mb-4">
                    <label for="password_confirmation" class="form-label small fw-semibold text-muted text-uppercase" style="letter-spacing:.5px;">Confirm New Password</label>
                    <input type="password" class="form-control py-2" style="border-radius:10px;"
                           id="password_confirmation" name="password_confirmation" placeholder="Re-enter new password">
                </div>

                <div class="d-flex gap-3">
                    <button type="submit" class="btn px-4 py-2" style="background:linear-gradient(135deg, #780045, #F54927); color:#fff; font-weight:600; border-radius:12px;">
                        <i class="bi bi-check-lg me-1"></i>Update Operator
                    </button>
                    <a href="<?php echo e(route('admin.operators.index')); ?>" class="btn px-4 py-2" style="background:#f0f2f5; color:#6b7280; font-weight:600; border-radius:12px;">
                        Cancel
                    </a>
                </div>
            </form>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/electorade/machine.goldenarkbd.com/resources/views/admin/operators/edit.blade.php ENDPATH**/ ?>