<!DOCTYPE html>
<html lang="es">
<head>
    <meta charset="UTF-8">
    <title>@yield('title', 'Safebuild Corporation - Cotizador')</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- Bootstrap (CDN o local) -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- jQuery (necesario para formBuilder) -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>


<!-- formBuilder CDN -->
    <link rel="stylesheet" href="{{ asset('node_modules/jquery-ui-dist/jquery-ui.min.css') }}">
    @vite('resources/js/app.js')


<!-- JS -->
<script src="{{ asset('node_modules/vendor/formbuilder/dist/form-builder.min.js') }}"></script>



    @stack('styles')

</head>
<body>
    <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
        <div class="container">
            <a class="navbar-brand" href="/">Mi Proyecto</a>
            @auth
            
                <form action="{{ route('logout') }}" method="POST" class="d-inline ms-auto">
                    @csrf
                    <button class="btn btn-sm btn-outline-light">Cerrar sesión</button>
                </form>
            @endauth
        </div>
    </nav>

    <main class="container mt-4">
        @yield('content')
    </main>

    <footer class="bg-light text-center text-muted py-3 mt-5">
        © {{ date('Y') }} Mi Proyecto Laravel
    </footer>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
    @stack('scripts')
</body>
</html>
