<!DOCTYPE html>
<html lang="es">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?php echo $__env->yieldContent('title', 'Ficha Académica'); ?></title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css">
    <style>
        body { background-color: #f1f4f9; font-family: 'Inter', sans-serif; }
        .navbar-brand { font-weight: 800; color: #0d6efd !important; letter-spacing: -0.5px; }
        .card { border: none; box-shadow: 0 10px 25px rgba(0,0,0,0.05); border-radius: 15px; }
        .btn-primary { border-radius: 10px; padding: 10px 20px; font-weight: 600; }
        .form-control, .form-select { border-radius: 10px; padding: 12px; border: 1px solid #e0e6ed; }
        .form-control:focus { box-shadow: 0 0 0 4px rgba(13,110,253,0.1); }
        .badge-custom { padding: 8px 15px; border-radius: 8px; }
        @media print { .no-print { display: none !important; } .container { width: 100% !important; max-width: 100% !important; } .card { box-shadow: none; border: 1px solid #eee; } }
    </style>
</head>
<body>
    <nav class="navbar navbar-expand-lg navbar-light bg-white border-bottom no-print sticky-top py-3">
        <div class="container">
            <a class="navbar-brand" href="<?php echo e(route('home')); ?>">
                <i class="bi bi-mortarboard-fill me-2"></i>SISTEMA DE FICHAS
            </a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-collapse navbar-nav ms-auto align-items-center">
                    <?php if(auth()->guard()->check()): ?>
                        <li class="nav-item me-3">
                            <a class="nav-link fw-semibold <?php echo e(request()->routeIs('admin.records.*') ? 'text-primary' : ''); ?>" href="<?php echo e(route('admin.records.index')); ?>">
                                <i class="bi bi-people me-1"></i> Fichas
                            </a>
                        </li>
                        <li class="nav-item me-3">
                            <a class="nav-link fw-semibold <?php echo e(request()->routeIs('admin.custom_fields.*') ? 'text-primary' : ''); ?>" href="<?php echo e(route('admin.custom_fields.index')); ?>">
                                <i class="bi bi-gear-wide-connected me-1"></i> Configurar Campos
                            </a>
                        </li>
                        <li class="nav-item">
                            <form action="<?php echo e(route('logout')); ?>" method="POST">
                                <?php echo csrf_field(); ?>
                                <button class="btn btn-outline-danger btn-sm rounded-pill px-3">Cerrar Sesión</button>
                            </form>
                        </li>
                    <?php else: ?>
                        <li class="nav-item">
                            <a href="<?php echo e(route('login')); ?>" class="btn btn-light btn-sm rounded-pill px-3">Acceso Admin</a>
                        </li>
                    <?php endif; ?>
                </ul>
            </div>
        </div>
    </nav>

    <div class="container py-5">
        <?php if(session('success')): ?>
            <div class="alert alert-success alert-dismissible fade show no-print border-0 shadow-sm mb-4" role="alert">
                <i class="bi bi-check-circle-fill me-2"></i><?php echo e(session('success')); ?>

                <button type="button" class="btn-close" data-bs-dismiss="alert"></button>
            </div>
        <?php endif; ?>
        <?php echo $__env->yieldContent('content'); ?>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
<?php /**PATH /home/fichaacademicaup/public_html/ficha_academica/resources/views/layouts/app.blade.php ENDPATH**/ ?>