<?php $__env->startSection('title', 'Tambah Agenda — Admin'); ?>

<style>
    .formPage {
        padding: 0 16px 120px;
    }

    .formPageHeader {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 16px 4px;
    }

    .backBtn {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: rgba(37,99,235,0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #2563eb;
        flex-shrink: 0;
    }

    .backBtn ion-icon { font-size: 20px; }

    .formPageTitle {
        font-size: 18px;
        font-weight: 700;
        color: #0f172a;
    }

    .formGroup {
        margin-bottom: 16px;
    }

    .formLabel {
        display: block;
        font-size: 12px;
        font-weight: 600;
        color: var(--muted);
        letter-spacing: 0.5px;
        margin-bottom: 7px;
        text-transform: uppercase;
    }

    .formControl {
        width: 100%;
        padding: 13px 14px;
        border-radius: 12px;
        border: 1px solid #e2e8f0;
        background: #fff;
        font-size: 14px;
        color: #0f172a;
        box-sizing: border-box;
        appearance: none;
        -webkit-appearance: none;
        font-family: inherit;
    }

    .formControl:focus {
        outline: none;
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
    }

    textarea.formControl {
        resize: vertical;
        min-height: 90px;
    }

    .errorMsg {
        font-size: 11px;
        color: #ef4444;
        margin-top: 5px;
        display: block;
    }

    .submitBtn {
        width: 100%;
        padding: 15px;
        border-radius: 14px;
        border: none;
        background: #1a3a5c;
        color: #fff;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        margin-top: 8px;
        font-family: inherit;
        box-shadow: 0 4px 14px rgba(26,58,92,0.3);
    }

    .submitBtn:active { opacity: 0.9; }

    .errorList {
        margin: 0 0 16px;
        padding: 12px 14px;
        background: rgba(239,68,68,0.08);
        border: 1px solid rgba(239,68,68,0.22);
        border-radius: 12px;
        font-size: 13px;
        color: #dc2626;
    }

    .errorList ul { margin: 6px 0 0; padding-left: 16px; }
    .errorList ul li { margin-bottom: 3px; }
</style>

<?php $__env->startSection('content'); ?>

    <div class="formPageHeader">
        <a href="<?php echo e(route('admin.jadwal.index')); ?>" class="backBtn">
            <ion-icon name="arrow-back-outline"></ion-icon>
        </a>
        <div class="formPageTitle">Tambah Agenda</div>
    </div>

    <div class="formPage">

        <?php if($errors->any()): ?>
            <div class="errorList">
                <strong>Terdapat kesalahan:</strong>
                <ul>
                    <?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.jadwal.store')); ?>">
            <?php echo csrf_field(); ?>

            
            <div class="formGroup">
                <label class="formLabel">Judul Agenda</label>
                <input type="text" name="judul" class="formControl"
                       value="<?php echo e(old('judul')); ?>" placeholder="Contoh: Rapat Wali Murid" required>
                <?php $__errorArgs = ['judul'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                    <span class="errorMsg"><?php echo e($message); ?></span>
                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
            </div>

            
            <div class="formGroup">
                <label class="formLabel">Deskripsi <span style="font-weight:400;text-transform:none;">(opsional)</span></label>
                <textarea name="deskripsi" class="formControl"
                          placeholder="Keterangan tambahan tentang agenda ini..."><?php echo e(old('deskripsi')); ?></textarea>
                <?php $__errorArgs = ['deskripsi'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                    <span class="errorMsg"><?php echo e($message); ?></span>
                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
            </div>

            
            <div class="formGroup">
                <label class="formLabel">Tanggal</label>
                <input type="date" name="tanggal" class="formControl"
                       value="<?php echo e(old('tanggal', date('Y-m-d'))); ?>" required>
                <?php $__errorArgs = ['tanggal'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                    <span class="errorMsg"><?php echo e($message); ?></span>
                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
            </div>

            
            <div class="formGroup">
                <label class="formLabel">Lokasi <span style="font-weight:400;text-transform:none;">(opsional)</span></label>
                <input type="text" name="lokasi" class="formControl"
                       value="<?php echo e(old('lokasi')); ?>" placeholder="Contoh: Ruang Aula, Online, dll.">
                <?php $__errorArgs = ['lokasi'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                    <span class="errorMsg"><?php echo e($message); ?></span>
                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
            </div>

            <button type="submit" class="submitBtn">Simpan Agenda</button>
        </form>
    </div>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('layout.admin', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp1\htdocs\presensi-tutor\resources\views/admin/jadwal/create.blade.php ENDPATH**/ ?>