
<?php $__env->startSection('title'); ?> Expense Receipt | Beauty Parlour <?php $__env->stopSection(); ?>
<?php $__env->startSection('expense-receipt'); ?> active <?php $__env->stopSection(); ?>
<?php $__env->startSection('expense-receipt.index'); ?> active <?php $__env->stopSection(); ?>
<?php $__env->startSection('styles'); ?>
<?php $__env->stopSection(); ?>


<?php $__env->startSection('main_content_section'); ?>
<div class="row py-3 ps-2">
    <div class="heading d-flex justify-content-start align-items-center">
        <h3 class="mb-0"><span> Expense Receipt List</span></h3>
    </div>
</div>

<div class="table_wrapper py-1 card">
    <div class="row my-2 aggregate-section-div">
        <div class="px-3 ">
            <div class=" d-flex justify-content-between align-items-center aggregate-section border">
                <div class="d-flex align-items-center">
                    <p class="mb-0"><a href="<?php echo e(route('expense-receipt.index')); ?>"
                            class="text-primary py-2 px-3 active">All(<?php echo e($allExpenseReceiptCount); ?>)</a>
                    </p>
                </div>
                <div class="d-sm-block">
                    <?php if(Auth::user()->can('expense-receipt-create')): ?>
                    <a href="<?php echo e(route('expense-receipt.create')); ?>"
                        class="btn btn-success rounded-0 d-flex align-items-center px-2 border-0"><span class="">New Expense Receipt</span></a>
                    <?php endif; ?>
                </div>
            </div>
        </div>
    </div>



    <div class="row px-3">
        <div class="table-container table-responsive">
            <table id="" class="table table-bordered">
                <thead class="text-uppercase">
                    <tr class="me-3">
                        <th class="text-center" scope="col"><span>Expense Id</span></th>
                        <th class="text-center" scope="col"><span>Receipt By</span></th>
                        <th class="text-center" scope="col"><span>Created At</span></th>
                    </tr>
                </thead>
                <tbody class="text-center">

                    <?php $__currentLoopData = $expenseReceiptData; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php if(isset($item) && $item != null): ?>
                    <tr class="">

                        <td>
                            <div class="row_title">
                                <?php echo e($item->expense_receipt_id); ?>

                            </div>
                            <div class="row-actions mt-2">
                                <?php if(Auth::user()->can('expense-receipt-edit')): ?>
                                <span><a href="<?php echo e(route('get-all-expense-receipt', $item->id)); ?>" 
                                    class="text-primary border-0 bg-transparent fw-bolder" target="_blank"> Invoice View </a></span>
                                <?php endif; ?>
                            </div>
                        </td>

                        <td>
                            <span class="fw-bolder text-nomral"><?php echo e($item->receipt_by); ?></span>
                        </td>

                        <td class="text-start">
                            <b>Date: </b> <?php echo e(Carbon\Carbon::parse($item->created_at->toDateString())->format('d-m-Y')); ?> <br>
                            <b>Time: </b> <?php echo e(Carbon\Carbon::create($item->created_at->toTimeString())->format('h:i')); ?>

                        </td>

                    </tr>

                    <?php endif; ?>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


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

        <?php if(isset($allExpenseReceiptCount) && $allExpenseReceiptCount > 10): ?>
        <div class="clearfix d-flex">
            <div class="float-left">
                <p class="text-muted">
                    <?php echo e(__('Showing')); ?>

                    <span class="font-weight-bold"><?php echo e($expenseReceiptData->firstItem()); ?></span>
                    <?php echo e(__('to')); ?>

                    <span class="font-weight-bold"><?php echo e($expenseReceiptData->lastItem()); ?></span>
                    <?php echo e(__('of')); ?>

                    <span class="font-weight-bold"><?php echo e($expenseReceiptData->total()); ?></span>
                    <?php echo e(__('results')); ?>

                </p>
            </div>

            <div class="float-right custom-table-pagination">
                <?php echo $expenseReceiptData->links('pagination::bootstrap-4'); ?>

            </div>
        </div>
        <?php endif; ?>
    </div>
</div>

<?php $__env->stopSection(); ?>

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

<script>
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\Project\Personal-Project\Office-Project\update\skin-care\resources\views/admin/expenses/expenseReceipt/index.blade.php ENDPATH**/ ?>