

<?php $__env->startSection('title', 'Add Manager'); ?>

<?php $__env->startSection('content'); ?>
<div class="container-fluid px-4 py-6">
    <div class="max-w-3xl mx-auto">
        <div class="d-flex align-items-center mb-4">
            <a href="<?php echo e(route('operations-manager.index')); ?>" class="btn btn-secondary">
                <i class="fas fa-arrow-left"></i> Back to list
            </a>
        </div>

        <div class="card shadow-sm">
            <div class="card-header bg-white">
                <h4 class="mb-0">Create Manager Account</h4>
            </div>
            <div class="card-body">
                <?php if($errors->any()): ?>
                    <div class="alert alert-danger">
                        <ul class="mb-0">
                            <?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 action="<?php echo e(route('operations-manager.store')); ?>" method="POST">
                    <?php echo csrf_field(); ?>
                    <div class="mb-4">
                        <label class="form-label fw-semibold" for="name">Full Name <span class="text-danger">*</span></label>
                        <input type="text" name="name" id="name" class="form-control" value="<?php echo e(old('name')); ?>" required>
                    </div>
                    <div class="mb-4">
                        <label class="form-label fw-semibold" for="email">Email <span class="text-danger">*</span></label>
                        <input type="email" name="email" id="email" class="form-control" value="<?php echo e(old('email')); ?>" required>
                    </div>
                    <div class="mb-4">
                        <label class="form-label fw-semibold" for="role">Role <span class="text-danger">*</span></label>
                        <select name="role" id="role" class="form-select" required>
                            <option value="DRM Manager" <?php echo e(old('role') == 'DRM Manager' ? 'selected' : ''); ?>>DRM Manager</option>
                            <option value="Youth and Volunteer Coordinator" <?php echo e(old('role') == 'Youth and Volunteer Coordinator' ? 'selected' : ''); ?>>Youth and Volunteer Coordinator</option>
                            <option value="Operations Manager" <?php echo e(old('role') == 'Operations Manager' ? 'selected' : ''); ?>>Operations Manager</option>
                        </select>
                    </div>
                    <div class="row">
                        <div class="col-md-6 mb-4">
                            <label class="form-label fw-semibold" for="password">Password <span class="text-danger">*</span></label>
                            <input type="password" name="password" id="password" class="form-control" required>
                            <small class="text-muted">Minimum 8 characters.</small>
                        </div>
                        <div class="col-md-6 mb-4">
                            <label class="form-label fw-semibold" for="password_confirmation">Confirm Password <span class="text-danger">*</span></label>
                            <input type="password" name="password_confirmation" id="password_confirmation" class="form-control" required>
                        </div>
                    </div>
                    
                    <input type="hidden" name="is_active" value="1">
                    <div class="mb-4">
                        <label class="form-label fw-semibold">Account is active</label>
                        <input type="text" class="form-control" value="Active" disabled>
                    </div>

                    <div class="d-flex gap-2">
                        <button type="submit" class="btn btn-primary">
                            <i class="fas fa-save me-1"></i> Create Account
                        </button>
                        <a href="<?php echo e(route('operations-manager.index')); ?>" class="btn btn-outline-secondary">Cancel</a>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>


<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\wamp64\www\ndrt-system\resources\views/operations_manager/create.blade.php ENDPATH**/ ?>