<?php $__env->startSection('title', 'Notas de Entrega'); ?>

<?php $__env->startSection('content'); ?>
<div class="bg-body-light">
    <div class="content content-full">
        <div class="d-flex flex-column flex-sm-row justify-content-sm-between align-items-sm-center py-2">
            <div class="flex-grow-1">
                <h1 class="h3 fw-bold mb-2">
                    <i class="fa fa-file-invoice text-primary me-2"></i>Notas de Entrega
                </h1>
                <h2 class="fs-base lh-base fw-medium text-muted mb-0">
                    Reporte de documentos entregados (Minutas, Planos, DDRR, etc.) por rango de fechas.
                </h2>
            </div>
            <div class="mt-3 mt-sm-0 ms-sm-3">
                <a href="<?php echo e(route('dashboard')); ?>" class="btn btn-sm btn-alt-secondary">
                    <i class="fa fa-home me-1"></i> Inicio
                </a>
            </div>
        </div>
    </div>
</div>

<div class="content">
    <div class="row justify-content-center">
        <div class="col-md-8 col-lg-6">

            <form method="POST" action="<?php echo e(route('reportes.notas-entrega.pdf')); ?>" target="_blank">
                <?php echo csrf_field(); ?>

                <div class="block block-rounded block-bordered shadow-sm">
                    <div class="block-header block-header-default">
                        <h3 class="block-title">Periodo de Consulta</h3>
                    </div>
                    <div class="block-content">

                        <?php if($errors->any()): ?>
                            <div class="alert alert-danger d-flex align-items-center" role="alert">
                                <div class="flex-shrink-0"><i class="fa fa-fw fa-times-circle"></i></div>
                                <div class="flex-grow-1 ms-3">
                                    <ul class="mb-0 fs-sm">
                                        <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $e): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><li><?php echo e($e); ?></li><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </ul>
                                </div>
                            </div>
                        <?php endif; ?>

                        <div class="row g-3 mb-4">
                            <div class="col-md-6">
                                <label class="form-label text-muted fs-xs fw-bold text-uppercase" for="fechaini">Fecha Inicial <span class="text-danger">*</span></label>
                                <input type="date" name="fechaini" id="fechaini"
                                       class="form-control <?php $__errorArgs = ['fechaini'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                       value="<?php echo e(old('fechaini', $hoy)); ?>" required>
                            </div>
                            <div class="col-md-6">
                                <label class="form-label text-muted fs-xs fw-bold text-uppercase" for="fechafin">Fecha Final <span class="text-danger">*</span></label>
                                <input type="date" name="fechafin" id="fechafin"
                                       class="form-control <?php $__errorArgs = ['fechafin'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                       value="<?php echo e(old('fechafin', $hoy)); ?>" required>
                            </div>
                        </div>

                    </div>
                    <div class="block-content block-content-full block-content-sm bg-body-light border-top text-end">
                        <button type="reset" class="btn btn-alt-secondary me-1">
                            <i class="fa fa-sync-alt me-1"></i> Limpiar
                        </button>
                        <button type="submit" class="btn btn-danger">
                            <i class="fa fa-file-pdf me-1"></i> Generar Reporte PDF
                        </button>
                    </div>
                </div>
            </form>

            <div class="block block-rounded block-bordered bg-body-extra-light mt-4">
                <div class="block-content py-3">
                    <div class="d-flex">
                        <div class="flex-shrink-0 me-3">
                            <i class="fa fa-info-circle text-primary"></i>
                        </div>
                        <div class="flex-grow-1">
                            <p class="fs-sm mb-0 text-muted">
                                Este reporte consolida la información de trámites finalizados. Incluye el detalle de: 
                                <span class="fw-semibold">Minutas, Transferencias, Protocolos, Planos Visados y trámites ante DDRR.</span>
                            </p>
                        </div>
                    </div>
                </div>
            </div>

        </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 /var/www/proyect-laravel/cosmos-app/resources/views/reportes/notas_entrega_filtros.blade.php ENDPATH**/ ?>