

<?php $__env->startSection('content'); ?>

<?php

use App\Http\Controllers\MainAcontroller; ?>


<div class="card">
    <div class="card-body">

        <?php if($message = Session::get('success')): ?>
        <div class="alert border-0 bg-light-success alert-dismissible fade show py-2">
            <div class="d-flex align-items-center">
                <div class="fs-3 text-success"><i class="bi bi-check-circle-fill"></i>
                </div>
                <div class="ms-3">
                    <div class="text-success"><?php echo e($message); ?></div>
                </div>
            </div>
            <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
        </div>
        <?php endif; ?>

        <?php if($message = Session::get('fail')): ?>
        <div class="alert border-0 bg-light-danger alert-dismissible fade show py-2">
            <div class="d-flex align-items-center">
                <div class="fs-3 text-danger"><i class="bi bi-x-circle-fill"></i>
                </div>
                <div class="ms-3">
                    <div class="text-danger">
                        <?php echo e($message); ?>

                    </div>
                </div>
            </div>
            <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
        </div>
        <?php endif; ?>

        <h6 class="mb-0 text-uppercase text-center"><?php echo e($clientname[0]); ?> <br> <?php echo e($area[0]); ?> , <?php echo e($location[0]); ?> <br> <?php echo "CASH CLOSING REPORT " . (MainAcontroller::convertDate($from)) ?> TO <?php echo (MainAcontroller::convertDate($to)) ?> </h6>
        <hr />

        <div class="table-responsive">
            <table data-page-length='15' id="example2" class="table table-striped table-bordered">
                <thead class="table-secondary">
                    <tr>
                        <th>Sl No</th>
                        <th>Date</th>
                        <th>PRE Denomination</th>
                        <th>OPN Balance</th>
                        <th>Cash Sales</th>
                        <th>Credit Sales</th>
                        <th>Card Sales</th>
                        <th>SR Amount</th>
                        <th>PAID Amount</th>
                        <th>Denomination</th>

                        <!-- <th>Action</th> -->
                    </tr>
                </thead>
                <tbody>
                    <?php  $num = 1; ?>
                    <?php $__currentLoopData = $total; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $client): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <tr>
                        <td><?php echo e($num); ?></td>

                        <td> <?php echo (MainAcontroller::convertDate($client->dt)) ?>  </td>
                        <td><?php echo e($client->PrevDenTotal); ?> </td>
                        <td><?php echo e($client->OpAmount); ?></td>
                        <td><?php echo e($client->CashSales); ?></td>
                        <td><?php echo e($client->CreditSales); ?></td>
                        <td><?php echo e($client->CardSales); ?></td>
                        <td><?php echo e($client->SRAmount); ?></td>
                        <td><?php echo e($client->Paid); ?></td>
                        <td><?php echo e($client->DenominationAmt); ?></td>



                        <!-- <td>
                            <div class="table-actions d-flex align-items-center gap-3 fs-6">

                                <a href="#" style="background: transparent;" type="submit" class="text-success" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Web Permissions"> <i class="fadeIn animated bx bx-shield-quarter"></i> </a>

                            </div>
                        </td> -->
                    </tr>
                    <?php $num++; ?>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                </tbody>
            </table>
        </div>
    </div>
</div>

<script>
    $(document).ready(function() {
        $(".clickToView").click(function() {


            $('#modalClientDetails').modal('show');

        });
    });
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('Admin.Layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/digitronicsindia/public_html/aswas/resources/views/Admin/cashclosingreport.blade.php ENDPATH**/ ?>