<?php $__env->startSection('content'); ?>
    <div class="pageHeaderRow">
        <h2>Tambah Karyawan</h2>
        <a class="btnOutline" href="<?php echo e(route('admin.karyawan.index')); ?>">
            Kembali
        </a>
    </div>

    <?php if($errors->any()): ?>
        <div class="errorList">
            <div style="font-weight:1000;margin-bottom:6px;">Periksa input berikut:</div>
            <ul style="padding-left:18px;margin: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; ?>

    <div class="formCard">
        <form method="POST" action="<?php echo e(route('admin.karyawan.store')); ?>" enctype="multipart/form-data">
            <?php echo csrf_field(); ?>
            <div class="formRow">
                <div class="fieldLabel">Nama Lengkap</div>
                <input class="input" type="text" name="nama_lengkap" value="<?php echo e(old('nama_lengkap')); ?>" required />
            </div>

            <div class="formRow">
                <div class="fieldLabel">NIK</div>
                <input class="input" type="text" name="nik" value="<?php echo e(old('nik')); ?>" required />
            </div>

            <div class="formRow">
                <div class="fieldLabel">Role</div>
                <select class="input" name="role">
                    <option value="">-- Pilih Role --</option>
                    <option value="admin">Admin</option>
                    <option value="tutor">Tutor</option>
                    <option value="kepala_sekolah">Kepala Sekolah</option>
                </select>
            </div>

            <div class="formRow">
                <div class="fieldLabel">No HP</div>
                <input class="input" type="text" name="no_hp" value="<?php echo e(old('no_hp')); ?>" required />
            </div>

            <div class="formRow">
                <div class="fieldLabel">Foto</div>
                <input class="input" type="file" name="foto" value="<?php echo e(old('foto')); ?>" />
            </div>

            <div class="formRow">
                <div class="fieldLabel">Password</div>
                <input class="input" type="password" name="password" value="<?php echo e(old('password')); ?>" required />
            </div>

            <div class="formRow">
                <div class="fieldLabel">Konfirmasi Password</div>
                <input class="input" type="password" name="password_confirmation" value="<?php echo e(old('password_confirmation')); ?>" required />
            </div>

            <button type="submit" class="btnPrimary" style="width:100%;justify-content:center;">
                <ion-icon name="save-outline"></ion-icon>
                Simpan
            </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/karyawan/create.blade.php ENDPATH**/ ?>