<!-- LOGIN ADMIN IZIN TAMU -->


<?php $__env->startSection('title', 'Login Admin'); ?>

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

 <meta http-equiv="refresh" content="600"> 


<div class="bg-slate-800 p-8 rounded-3xl shadow-2xl w-96 mx-auto mt-20">

    <!-- 🖼️ Logo -->
    <img src="<?php echo e(asset('images/logo.png')); ?>" alt="Logo" class="mx-auto mb-4 w-24 h-24 object-contain">


    <h2 class="text-2xl font-bold text-center text-indigo-400 mb-6">Login Admin</h2>

    <?php if($errors->any()): ?>
        <div class="bg-red-500 text-white p-3 rounded mb-4">
            <?php echo e($errors->first()); ?>

        </div>
    <?php endif; ?>

    <form method="POST" action="<?php echo e(route('admin.login')); ?>">
        <?php echo csrf_field(); ?>
        <div class="mb-4">
            <label class="block text-gray-300">Email</label>
            <input type="email" name="email" value="<?php echo e(old('email')); ?>" required
                   class="w-full px-4 py-2 rounded bg-slate-700 text-white border border-slate-600">
        </div>
        <div class="mb-4">
            <label class="block text-gray-300">Password</label>
            <input type="password" name="password" required
                   class="w-full px-4 py-2 rounded bg-slate-700 text-white border border-slate-600">
        </div>
        <button type="submit"
                class="w-full bg-indigo-600 hover:bg-indigo-700 text-white py-2 rounded transition">
            Login
        </button>
    </form>

    <!-- Tombol balik ke index -->
    <div class="text-center mt-6">
        <a href="<?php echo e(url('/izin_tamu')); ?>"
           class="px-4 py-2 bg-gray-200 text-gray-700 rounded-lg hover:bg-gray-300 transition">
           ← Kembali ke Halaman Utama
        </a>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('izin_tamu.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\Hafiiz\Project\Code Magang\Finall\Apps Asama Layer Security\booking-ruangan-tamu\resources\views/auth/admin-login.blade.php ENDPATH**/ ?>