
<?php $__env->startSection('title'); ?> Invoice | Beauty Parlour <?php $__env->stopSection(); ?>
<?php $__env->startSection('purchase'); ?> 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 -->

    <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="">Invoice ID: </p>
                                <p class="">Invoice Date: </p>
                                <p class="">Invoice Generate: </p>
                            </div>

                            <div class="d-flex flex-column gap-2 custom-billing-invoice-header-right">
                                <input type="text" name="invoice_id"
                                    class="form-control custom-cursor-pointer custom-readonly-bg-color"
                                    value="#<?php echo e($singlePurchaseData->purchase_id); ?>" readonly disabled>
                                <input type="text"
                                    class=" form-control custom-readonly-bg-color flatpickr-basic custom-date-picker"
                                    name="purchase_date" id="purchase_date" placeholder="DD-MM-YYYY"
                                    value="<?php echo e(Carbon\Carbon::parse($singlePurchaseData->purchase_date)->format('d-m-Y')); ?>"
                                    readonly disabled>
                                <input type="text"
                                    class="form-control custom-readonly-bg-color flatpickr-basic custom-date-picker"
                                    value="<?php echo e(Str::title($singlePurchaseData->purchase_by)); ?>" readonly disabled>
                            </div>
                        </div>

                    </div>
                </div>

                <hr>

                <div class="row px-4 mt-3">
                    <div class="col-12">
                        <h5>Purchase Product List</h5>
                        <div class="table-container table-responsive">
                            <table class="table table-bordered py-3">
                                <!-- <hr class="mb-1"> -->
                                <thead>
                                    <tr>
                                        <th scope="col"> Product </th>
                                        <th scope="col" class="text-center"> QTY </th>
                                        <th scope="col" class="text-center"> Unit Price </th>
                                        <th scope="col" class="text-center"> Total Price </th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php $__currentLoopData = $purchaseBPD; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $singleBPD): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <?php if(isset($singleBPD) && $singleBPD != null): ?>
                                    <tr>
                                        <td class="text-no-wrap"><?php echo e($singleBPD->productData->product_name); ?></td>
                                        <td class="text-center"><?php echo e($singleBPD->product_qty); ?></td>
                                        <td class="text-center"><?php echo e($singleBPD->single_product_price); ?></td>
                                        <td class="text-center"><?php echo e($singleBPD->total_product_price); ?></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 pt-3">
                    <div class="row">
                        <div class="col-md-6">
                            <span class="">

                                <p class="mb-1" id="updateBranchInvoiceTerms">
                                    <?php echo $softLogo != null ? $softLogo->invoice_terms : ''; ?>

                                </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>Product Qty:</p>
                                    <p>Total Amount:</p>
                                    <p>Special Discount:</p>
                                    <p>Net Amount:</p>
                                </div>
                                <div class="d-flex flex-column gap-2 w-50">
                                    <input type="text" name="sub_total_quantity" id="sub_total_quantity"
                                        class="form-control custom-cursor-pointer custom-readonly-bg-color"
                                        value="<?php echo e($subTotalProductQty > 0 ? $subTotalProductQty : 0); ?>" readonly>
                                    <input type="text" name="total_price" id="total_price"
                                        class="form-control custom-cursor-pointer custom-readonly-bg-color"
                                        value="<?php echo e($subTotalPrice > 0 ? $subTotalPrice : 0); ?>" readonly>
                                    <input type="text" name="total_discount_price" id="total_discount_price"
                                        class="form-control custom-cursor-pointer custom-readonly-bg-color"
                                        value="<?php echo e($subTotalProductDiscount > 0 ? $subTotalProductDiscount : 0); ?>"
                                        readonly>
                                    <input type="text" name="grand_total_price" id="grand_total_price"
                                        class="form-control custom-cursor-pointer custom-readonly-bg-color"
                                        value="<?php echo e($grandTotalProductPrice > 0 ? $grandTotalProductPrice : 0); ?>" readonly>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

            </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>Invoice Status</strong>
                                    </p>
                                </div>
                            </div>
                            <div class="card-footer p-0 dashboard-card-footer text-center custom-invoice-card-status">
                                <div class="stats">
                                    <div class="row">
                                        <div class="col-12">
                                            <i class="material-symbols-outlined text-success">check_circle</i><br>
                                            <span>Completed</span>
                                        </div>
                                    </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>Invoice Options</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-purchase-invoice-page', $singlePurchaseData->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
                                            </div>
                                        </a>

                                        <a href="<?php echo e(route('download-purchase-invoice-page', $singlePurchaseData->id)); ?>"
                                            class="text-white btn" target="_blank">
                                            <div class="col-12 invoice-download-button text-center py-2">
                                                <i
                                                    class="material-symbols-outlined custom-bill-pay-icon">visibility</i>View
                                            </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>Payment Notes</strong>
                                    </p>
                                </div>
                            </div>
                            <div class="card-footer p-0 dashboard-card-footer text-center custom-invoice-card-status">
                                <div class="stats">
                                    <div class="row">
                                        <div class="col-12">
                                            <p class="my-3"><?php echo e($singlePurchaseData->purchasePaymentData->payment_note); ?>

                                            </p>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

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

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

<?php $__env->startSection('scripts'); ?>
<?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/productManage/purchaseProduct/purchaseProductPaymentInvoice.blade.php ENDPATH**/ ?>