<?php $__env->startSection('title', 'Reporte Diario de Caja'); ?>

<?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-cash-register text-success me-2"></i>Reporte Diario de Caja
                </h1>
                <h2 class="fs-base lh-base fw-medium text-muted mb-0">
                    Conciliación de ingresos y exportación detallada de movimientos financieros.
                </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-5">

            <form method="POST" action="<?php echo e(route('reportes.reporte-diario.excel')); ?>">
                <?php echo csrf_field(); ?>

                <div class="block block-rounded block-bordered shadow-sm border-top border-success border-3">
                    <div class="block-header block-header-default">
                        <h3 class="block-title">Periodo de Caja</h3>
                        <div class="block-options">
                            <span class="badge bg-success-light text-success">Excel (.xlsx)</span>
                        </div>
                    </div>
                    <div class="block-content">

                        <?php if($errors->any()): ?>
                            <div class="alert alert-danger d-flex align-items-center mb-4" 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-12">
                                <label class="form-label text-muted fs-xs fw-bold text-uppercase" for="fechaini">Desde <span class="text-danger">*</span></label>
                                <div class="input-group">
                                    <span class="input-group-text bg-white"><i class="fa fa-calendar-day text-success"></i></span>
                                    <input type="date" name="fechaini" id="fechaini" 
                                           class="form-control" 
                                           value="<?php echo e(now()->format('Y-m-d')); ?>" 
                                           required>
                                </div>
                            </div>
                            <div class="col-12">
                                <label class="form-label text-muted fs-xs fw-bold text-uppercase" for="fechafin">Hasta <span class="text-danger">*</span></label>
                                <div class="input-group">
                                    <span class="input-group-text bg-white"><i class="fa fa-calendar-check text-success"></i></span>
                                    <input type="date" name="fechafin" id="fechafin" 
                                           class="form-control" 
                                           value="<?php echo e(now()->format('Y-m-d')); ?>" 
                                           required>
                                </div>
                            </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-history me-1"></i> Hoy
                        </button>
                        <button type="submit" class="btn btn-success">
                            <i class="fa fa-file-excel me-1"></i> Descargar Excel
                        </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-success fa-2x"></i>
                        </div>
                        <div class="flex-grow-1">
                            <p class="fs-sm fw-bold mb-1 text-uppercase">Contenido del Libro de Caja:</p>
                            <p class="fs-sm text-muted mb-0 lh-base">
                                El archivo generado incluye el desglose de <strong>cuotas mensuales, cuotas iniciales e ingresos por trámites</strong>, facilitando la conciliación bancaria y contable.
                            </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/reporte_diario_form.blade.php ENDPATH**/ ?>