<?php $__env->startSection('title', 'Manual de Administrador'); ?>
<?php $__env->startSection('full_width', true); ?>

<?php $__env->startSection('content'); ?>
    <?php
        $manualHtmlUrl = asset('docs/manual-de-usuario.html');
        $hasPdf = is_file(storage_path('app/private/manual/manual-de-usuario.pdf'))
            || is_file(public_path('docs/manual-de-usuario.pdf'));
    ?>
    <div class="container py-4">
        <div class="d-flex flex-column flex-lg-row justify-content-between align-items-lg-center gap-3 mb-4">
            <div>
                <h1 class="h3 mb-1">Manual de Administrador</h1>
                <p class="text-muted-brand mb-0">Consulta la guia operativa del sistema desde este modulo.</p>
            </div>
            <div class="d-flex flex-wrap gap-2">
                <a class="btn btn-outline-secondary" href="<?php echo e(route('manual.administrador.markdown')); ?>">Descargar Markdown</a>
                <a class="btn btn-outline-primary" href="<?php echo e($manualHtmlUrl); ?>" target="_blank" rel="noopener noreferrer">Abrir HTML</a>
                <?php if($hasPdf): ?>
                    <a class="btn btn-brand" href="<?php echo e(route('manual.administrador.pdf')); ?>" target="_blank" rel="noopener noreferrer">Abrir PDF</a>
                    <a class="btn btn-outline-secondary" href="<?php echo e(route('manual.administrador.pdf.download')); ?>">Descargar PDF</a>
                <?php endif; ?>
            </div>
        </div>

        <div class="card shadow-sm border-0 overflow-hidden">
            <div class="card-body p-0">
                <iframe
                    src="<?php echo e($manualHtmlUrl); ?>"
                    title="Manual de Administrador"
                    style="width:100%;min-height:78vh;border:0;background:#fff;"
                ></iframe>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\almacen2\resources\views/manual/administrador.blade.php ENDPATH**/ ?>