
<?php $__env->startSection('title'); ?> Expense Receipt | Bus Ticket <?php $__env->stopSection(); ?>
<?php $__env->startSection('get-client-due-bill-payment-invoice'); ?> active <?php $__env->stopSection(); ?>
<?php $__env->startSection('get-client-due-bill-payment-invoice'); ?> active <?php $__env->stopSection(); ?>
<?php $__env->startSection('styles'); ?>
<?php $__env->stopSection(); ?>


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

<div class="row min-vh-100">
    <!-- all content will be here. start -->
        <input type="hidden" name="expense_receipt_id" id="expense_receipt_id"
            value="<?php echo e($singleExpenseReceiptData->id); ?>">

        <div class="row invoice p-0 m-0">
            <div class="col-md-9 p-0 m-0">
                <div class="shadow rounded m-3">

                    <?php
                    ///To get logo...
                    $softLogo = App\Models\InvoiceLogo::getSoftwareInvoiceLogo();
                    ?>
                    <div class="d-md-flex justify-content-between custom-billing-invoice-header">
                        <div class="custom-invoice-logo-section">
                            <div class="d-flex align-items-center  custom-billing-invoice-logo">
                                <?php if(isset($softLogo) && $softLogo->logo_image != null): ?>
                                <img src="<?php echo e(asset('backend/uploads/invoiceLogoImg/'.$softLogo->logo_image)); ?>"
                                    alt="logo">
                                <?php else: ?>
                                <img src="<?php echo e(asset('backend')); ?>/billing_invoice_logo.png" alt="logo">
                                <?php endif; ?>
                            </div>
                        </div>
                        <div class="custom-issue-due-date-section">

                            <div class="d-flex align-items-center gap-2">
                                <div
                                    class="d-flex flex-column justify-content-end custom-issue-due-date-text-area gap-2">
                                    <p class="">Receipt Id: </p>
                                    <p class="">Date: </p>
                                    <p class="">Reciever: </p>
                                </div>

                                <div class="d-flex flex-column gap-2 custom-billing-invoice-header-right">
                                    <input type="text" class="form-control custom-readonly-bg-color flatpickr-basic custom-date-picker"
                                        value="#<?php echo e($singleExpenseReceiptData->expense_receipt_id); ?>" readonly>
                                    <input type="text"
                                        class=" form-control custom-readonly-bg-color flatpickr-basic custom-date-picker"
                                        name="date_issue" id="date_issue" placeholder="DD-MM-YYYY"
                                        value="<?php echo e(Carbon\Carbon::parse($singleExpenseReceiptData->created_at->toDateString())->format('d-m-Y')); ?>"
                                        readonly>
                                    <input type="text"
                                        class="form-control custom-readonly-bg-color flatpickr-basic custom-date-picker"
                                        value="<?php echo e(Str::title(Auth::user()->name)); ?>" readonly>
                                </div>
                            </div>

                        </div>
                    </div>

                    <hr>

                    
                    <span>

                        <div class="row px-4">
                            <div class="col-12">
                                <div class="table-responsive">
                                    <h5>Expense Receipt List</h5>
                                    <table class="table table-bordered py-3" id="updateExpenseDetails">
                                        <!-- <hr class="mb-1"> -->
                                        <thead>
                                            <tr>
                                                <th class="text-center" scope="col"><span>SN</span></th>
                                                <th class="text-center" scope="col"><span>Expense</span></th>
                                                <th class="text-center" scope="col"><span>Details</span></th>
                                                <th class="text-center" scope="col"><span>Amount</span></th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <?php $__currentLoopData = $unpaidExpenseServiceData; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <?php if(isset($item) && $item != null): ?>
                                            <tr class="text-center">
                                                <td>
                                                    <b><?php echo e($key+1); ?></b>
                                                </td>
                                                <td class="text-start">
                                                    <div class="row_title">
                                                        <b>Category: </b><?php echo e($item->expenseCategoryData->category_name); ?>

                                                        <br>
                                                        <b>Expense: </b><?php echo e($item->expenseData->expense_name); ?>

                                                    </div>
                                                    <div class="row-actions w-50">
                                                        <?php if(Auth::user()->can('billing-edit')): ?>
                                                        <?php endif; ?>
                                                    </div>
                                                </td>

                                                <td class="text-start w-50">
                                                    <span class="text-secondary"><?php echo e($item->expense_details); ?></span>
                                                </td>

                                                <td class="text-center">
                                                    <span
                                                        class="fw-bolder text-success"><?php echo e($item->expense_amount); ?></span>
                                                </td>
                                            </tr>
                                            <?php endif; ?>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>

                        <hr>

                        <div class="custom-invoice-common-padding pb-5">
                            <div class="row">
                                <div class="col-md-6">
                                    <span class="">

                                        <p class="mb-1">
                                            Lorem, ipsum dolor sit amet consectetur adipisicing elit. Nisi, illo!
                                        </p>
                                    </span>
                                </div>
                                <div class="col-md-6">
                                    <div class="w-100 d-flex gap-2">
                                        <div class="text-end w-50 custom-footer-right-text-block">
                                            <p>Expense Qty:</p>
                                            <p>Total Amount:</p>
                                        </div>
                                        <div class="d-flex flex-column gap-2 w-50">
                                            <input type="text" name="sub_total_expense_quantity"
                                                id="sub_total_expense_quantity"
                                                class="form-control custom-cursor-pointer custom-readonly-bg-color"
                                                value="<?php echo e($totalExpenseServiceQty > 0 ? $totalExpenseServiceQty : 0); ?>" readonly>
                                            <input type="text" name="sub_total_expense_amount"
                                                id="sub_total_expense_amount"
                                                class="form-control custom-cursor-pointer custom-readonly-bg-color"
                                                value="<?php echo e($totalExpenseServiceAmount > 0 ? $totalExpenseServiceAmount : 0); ?>"
                                                readonly>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                    </span>

                </div>
            </div>
            <div class="col-md-3 p-0 m-0">
                <div class="row p-3">
                    <div class="col-12 mb-4">
                        <div class="">
                            <div class="card card-stats">
                                <div class="card-header custom-payment-section-header">
                                    <div class="icon icon-warning d-flex">
                                        <span class="material-symbols-outlined">equalizer</span>
                                        <p
                                            class="category custom-card-header-title custom-payment-section-heading-title">
                                            <strong>Expense Receipt</strong>
                                        </p>
                                    </div>
                                </div>
                                <div class="card-footer p-0 dashboard-card-footer">
                                    <div class="stats">
                                        <div class="row">
                                            <a href="<?php echo e(route('print-all-expense-receipt', $singleExpenseReceiptData->id)); ?>" 
                                                class="text-white btn" target="_blank">
                                                <div class="col-12 invoice-print-button text-center py-2">
                                                    <i class="material-symbols-outlined custom-bill-pay-icon">print</i>Print Receipt
                                                </div>
                                            </a>

                                            <a class="text-white btn" href="<?php echo e(route('expense-receipt.edit', $singleExpenseReceiptData->id)); ?>">
                                                <div class="col-12 bg-warning text-center py-2">
                                                    <i class="material-symbols-outlined custom-bill-pay-icon">edit_note</i> Modify Receipt
                                                </div>
                                            </a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="col-12 mb-4">
                        <div class="">
                            <div class="card card-stats">
                                <div class="card-header custom-payment-section-header">
                                    <div class="icon icon-warning d-flex">
                                        <span class="material-symbols-outlined">equalizer</span>
                                        <p
                                            class="category custom-card-header-title custom-payment-section-heading-title">
                                            <strong>Receipt Notes</strong>
                                        </p>
                                    </div>
                                </div>
                                <div class="card-content px-3 custom-payment-section-body">
                                    <span>
                                        <div class="form-group custom-select2-form">
                                            <label for="receipt_notes"> Notes <span
                                                    class=" text-danger">(required)</span>
                                            </label>

                                            <textarea placeholder="Enter Notes" class="form-control"
                                                name="receipt_notes" id="receipt_notes" cols="2" rows="2"
                                                required><?php echo e($singleExpenseReceiptData->receipt_notes); ?></textarea>
                                        </div>

                                        <?php $__errorArgs = ['receipt_notes'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                        <span class=text-danger><?php echo e($message); ?></span>
                                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                    </span>
                                </div>
                            </div>
                        </div>
                    </div>

                </div>

            </div>
        </div>
    <!-- all content will be here. end -->

</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\Next-Web-Service\muktijoddhe-somobai-somity\resources\views/admin/expenses/expenseReceipt/getExpenseDetailsPage.blade.php ENDPATH**/ ?>