<?php $__env->startSection('title', 'Account Deletion Settings'); ?>

<?php $__env->startSection('breadcrumb'); ?>
    <div class="section-header-breadcrumb">
        <div class="breadcrumb-item"><a href="<?php echo e(route('admin.dashboard')); ?>">Dashboard</a></div>
        <div class="breadcrumb-item"><a href="<?php echo e(route('admin.settings.index')); ?>">Settings</a></div>
        <div class="breadcrumb-item active">Account Deletion Settings</div>
    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('main-content'); ?>
    <div class="row">
        <div class="col-lg-12">
            <div class="card">
                <div class="card-header d-flex justify-content-between align-items-center">
                    <h4>Deletion Workflow</h4>
                    <a href="<?php echo e(route('admin.settings.index')); ?>" class="btn btn-secondary"><i
                            class="fas fa-arrow-left"></i> Back to Settings</a>
                </div>
                <form action="<?php echo e(route('admin.settings.account_deletion.update')); ?>" method="POST">
                    <?php echo csrf_field(); ?>
                    <?php echo method_field('PUT'); ?>
                    <div class="card-body">
                        <div class="form-group">
                            <div class="custom-control custom-switch">
                                <input type="checkbox" class="custom-control-input" id="require_admin_approval"
                                    name="require_admin_approval" value="1"
                                    <?php echo e(old('require_admin_approval', $settings['require_admin_approval'] ?? true) ? 'checked' : ''); ?>>
                                <label class="custom-control-label" for="require_admin_approval">Require admin approval
                                    before account removal</label>
                            </div>
                            <small class="text-muted d-block mt-1">Users will remain active until an administrator approves
                                the deletion request.</small>
                        </div>
                        <div class="form-group">
                            <div class="custom-control custom-switch">
                                <input type="checkbox" class="custom-control-input" id="auto_archive_instructor_courses"
                                    name="auto_archive_instructor_courses" value="1"
                                    <?php echo e(old('auto_archive_instructor_courses', $settings['auto_archive_instructor_courses'] ?? true) ? 'checked' : ''); ?>>
                                <label class="custom-control-label" for="auto_archive_instructor_courses">Automatically
                                    archive instructor courses</label>
                            </div>
                            <small class="text-muted d-block mt-1">Keep course content accessible to enrolled students after
                                an instructor leaves.</small>
                        </div>
                        <div class="form-group">
                            <label for="notify_admin_email">Notification Email</label>
                            <input type="email" name="notify_admin_email" id="notify_admin_email"
                                class="form-control <?php $__errorArgs = ['notify_admin_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); ?>"
                                value="<?php echo e(old('notify_admin_email', $settings['notify_admin_email'] ?? '')); ?>" required>
                            <?php $__errorArgs = ['notify_admin_email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <div class="invalid-feedback"><?php echo e($message); ?></div>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                            <small class="text-muted">Pending requests alerts will be delivered to this address.</small>
                        </div>
                    </div>
                    <div class="card-footer text-right">
                        <button type="submit" class="btn btn-primary">Save Policy</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.admin', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /Users/mahmudul/Codecanyone/edu_ex_full/Eduex_laravel/resources/views/admin/settings/account-deletion.blade.php ENDPATH**/ ?>