<?php $__env->startSection('content'); ?>
    <?php echo $__env->make('report.accounting.header-menu', ['active_header' => 'expense-report'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <div class="card mt-2">
        <div class="card-body">
            <form action="<?php echo e(route('accounting.expense.report')); ?>" method="GET">
                <div class="row">
                    <div class="col-md-12">
                        <div class="row">
                            <div class="form-group col-lg-3 col-md-3 col-sm-6">
                                <input type="text" id="reportrange" name="date_range" class="form-control form-control-sm">
                            </div>
                            <div class="col-lg-2">
                                <button class="btn btn-sm btn-info">Search</button>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <div class="card mt-3" id="print-layout">
        <div class="card-header d-flex justify-content-between align-items-center">
            <h6 class="table__top__txt">Expense Report</h6>
            <div class="d-flex justify-content-end">
                <?php if (isset($component)) { $__componentOriginal19177f836eb0edeca2d8d763c719daa4 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal19177f836eb0edeca2d8d763c719daa4 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.report-actions','data' => ['print' => true,'exportExcel' => true,'exportPdf' => true]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('report-actions'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['print' => true,'export_excel' => true,'export_pdf' => true]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal19177f836eb0edeca2d8d763c719daa4)): ?>
<?php $attributes = $__attributesOriginal19177f836eb0edeca2d8d763c719daa4; ?>
<?php unset($__attributesOriginal19177f836eb0edeca2d8d763c719daa4); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal19177f836eb0edeca2d8d763c719daa4)): ?>
<?php $component = $__componentOriginal19177f836eb0edeca2d8d763c719daa4; ?>
<?php unset($__componentOriginal19177f836eb0edeca2d8d763c719daa4); ?>
<?php endif; ?>
            </div>
        </div>
        <div class="row">
            <div class="col-md-12">
          
                <div class="table-responsive">
                    <table class="table table-strip" id="dataTable">
                        <thead class="thead-light">
                            <tr>
                                <th>ID</th>
                                <th>Date</th>
                                <th>Accounting Head</th>
                                <th>Total Amount</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php
                                $sn = 1;
                            ?>
                            <?php $__empty_1 = true; $__currentLoopData = $expenses; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $expense): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                <tr>
                                    <td><?php echo e($sn++); ?></td>
                                    <td><?php echo e($expense->expense_date); ?></td>
                                    <td><?php echo e($expense->accounting_head_name); ?></td>
                                    <td><?php echo e(round($expense->total_amount)); ?></td>
                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                
                            <?php endif; ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <?php $__env->startPush('scripts'); ?>
        <script src="<?php echo e(asset('js/report-actions.js')); ?>"></script>
        <script>
            const exportExcelOptions = {
                url: '<?php echo e(route("accounting.expense.export-excel")); ?>',
                filename: 'expense',
                extraData: <?php echo json_encode(request()->query(), 15, 512) ?>,
            };
            const exportPdfOptions = {
                url: '<?php echo e(route("accounting.expense.export-pdf")); ?>',
                filename: 'expense',
                extraData: <?php echo json_encode(request()->query(), 15, 512) ?>,
            };
            const exportPrintOptions = {
                url: '<?php echo e(route("accounting.expense.export-print")); ?>',
                filename: 'expense',
                extraData: <?php echo json_encode(request()->query(), 15, 512) ?>,
            };
        </script>
    <?php $__env->stopPush(); ?>
<?php $__env->stopSection(); ?>


<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/EdueasyCollege/resources/views/report/accounting/expense-report.blade.php ENDPATH**/ ?>