<?php $__env->startSection('content'); ?>
<div class="row">
    <div class="col-md-12">
        <form action="<?php echo e(route('settings.update')); ?>" method="POST">
            <?php echo csrf_field(); ?>
            <?php echo method_field('PUT'); ?>
            
            <div class="row">
                <div class="col-md-6">
                    <div class="card mb-4">
                        <h5 class="card-header">Pengaturan Notifikasi</h5>
                        <div class="card-body">
                            <div class="mb-4">
                                <label for="admin_notification_email" class="form-label">Email Notifikasi Admin</label>
                                <input type="email" class="form-control <?php $__errorArgs = ['admin_notification_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); ?>" id="admin_notification_email" name="admin_notification_email" value="<?php echo e(old('admin_notification_email', $adminEmail)); ?>" placeholder="admin@example.com">
                                <?php $__errorArgs = ['admin_notification_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); ?>
                                <div class="form-text">
                                    Alamat email yang akan menerima notifikasi setiap ada tiket baru. Gunakan koma (<code>,</code>) untuk memasukkan lebih dari satu email.
                                </div>
                            </div>
                            <div class="p-3 bg-label-info rounded">
                                <p class="mb-0 small"><i class="ti tabler-info-circle me-1"></i> Pengaturan di bawah ini akan digunakan untuk mengirim email sistem (SMTP).</p>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="col-md-6">
                    <div class="card mb-4">
                        <h5 class="card-header">Konfigurasi SMTP (Email Server)</h5>
                        <div class="card-body">
                            <div class="row g-3">
                                <div class="col-md-8">
                                    <label for="mail_host" class="form-label">SMTP Host</label>
                                    <input type="text" class="form-control" id="mail_host" name="mail_host" value="<?php echo e(old('mail_host', $mailHost)); ?>" placeholder="smtp.gmail.com">
                                </div>
                                <div class="col-md-4">
                                    <label for="mail_port" class="form-label">Port</label>
                                    <input type="text" class="form-control" id="mail_port" name="mail_port" value="<?php echo e(old('mail_port', $mailPort)); ?>" placeholder="587">
                                </div>
                                <div class="col-md-6">
                                    <label for="mail_username" class="form-label">Username</label>
                                    <input type="text" class="form-control" id="mail_username" name="mail_username" value="<?php echo e(old('mail_username', $mailUsername)); ?>">
                                </div>
                                <div class="col-md-6">
                                    <label for="mail_password" class="form-label">Password</label>
                                    <input type="password" class="form-control" id="mail_password" name="mail_password" value="<?php echo e(old('mail_password', $mailPassword)); ?>">
                                </div>
                                <div class="col-md-6">
                                    <label for="mail_encryption" class="form-label">Enkripsi</label>
                                    <select class="form-select" id="mail_encryption" name="mail_encryption">
                                        <option value="null" <?php echo e(old('mail_encryption', $mailEncryption) == 'null' ? 'selected' : ''); ?>>None</option>
                                        <option value="tls" <?php echo e(old('mail_encryption', $mailEncryption) == 'tls' ? 'selected' : ''); ?>>TLS</option>
                                        <option value="ssl" <?php echo e(old('mail_encryption', $mailEncryption) == 'ssl' ? 'selected' : ''); ?>>SSL</option>
                                    </select>
                                </div>
                                <div class="col-md-6">
                                    <label for="mail_from_name" class="form-label">Nama Pengirim</label>
                                    <input type="text" class="form-control" id="mail_from_name" name="mail_from_name" value="<?php echo e(old('mail_from_name', $mailFromName)); ?>">
                                </div>
                                <div class="col-12">
                                    <label for="mail_from_address" class="form-label">Email Pengirim (From Address)</label>
                                    <input type="email" class="form-control" id="mail_from_address" name="mail_from_address" value="<?php echo e(old('mail_from_address', $mailFromAddress)); ?>">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="col-12 mt-2">
                <button type="submit" class="btn btn-primary btn-lg px-5 waves-effect waves-light">Simpan Semua Pengaturan</button>
            </div>
        </form>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', ['title' => 'Pengaturan Sistem', 'heading' => 'Pengaturan'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH G:\Project\inventaris-pondok\resources\views/admin/settings/index.blade.php ENDPATH**/ ?>