<div class="col-xl-9">

    <div class="invoice-container">
        <div class="invoice-inbox">

            <div id="ct" class="">

                <div class="invoice-00001">
                    <div class="content-section">

                        <div class="inv--head-section inv--detail-section">

                            <div class="row">

                                <div class="col-sm-6 col-12 mr-auto">
                                    <div class="d-flex">
                                        <img class="company-logo" src="<?php echo e(asset('rent-a-mailbox-512x512.png')); ?>"
                                            alt="company">
                                        <h3 class="in-heading align-self-center">
                                            <?php echo e(env('COMPANY_NAME')); ?></h3>
                                    </div>
                                    <p class="inv-street-addr mt-3">
                                        <?php echo e(env('COMPANY_NAME')); ?>

                                    </p>
                                    <p class="inv-email-address">
                                        <?php echo e(env('COMPANY_EMAIL')); ?>

                                    </p>
                                    <p class="inv-email-address">
                                        <?php echo e(env('COMPANY_PHONE')); ?>

                                    </p>
                                </div>

                                <div class="col-sm-6 text-sm-end">
                                    <p class="inv-list-number mt-sm-3 pb-sm-2 mt-4">
                                        <span class="inv-title">Invoice : </span>
                                        <span class="inv-number">#<?php echo e($invoice->invoice_number); ?></span>
                                        </span>
                                    </p>
                                    <p class="inv-created-date mt-sm-5 mt-3"><span class="inv-title">Invoice Date :
                                        </span> <span class="inv-date">
                                            <?php echo e(date('d M Y', strtotime($invoice->created_at))); ?>

                                        </span></p>

                                </div>
                            </div>

                        </div>

                        <div class="inv--detail-section inv--customer-detail-section">

                            <div class="row">

                                <div class="col-xl-8 col-lg-7 col-md-6 col-sm-4 align-self-center">
                                    <p class="inv-to">Invoice To</p>
                                </div>

                                <div
                                    class="col-xl-4 col-lg-5 col-md-6 col-sm-8 align-self-center order-sm-0 order-1 text-sm-end mt-sm-0 mt-5">
                                    <h6 class=" inv-title">Invoice From</h6>
                                </div>

                                <div class="col-xl-8 col-lg-7 col-md-6 col-sm-4">
                                    <p class="inv-customer-name">
                                        <?php echo e($invoice->client->full_name); ?>

                                    </p>

                                    <p class="inv-email-address">
                                        <?php echo e($invoice->client->email); ?>

                                    </p>
                                    <p class="inv-email-address">
                                        <?php echo e($invoice->client->phone_number); ?>

                                    </p>
                                </div>

                                <div class="col-xl-4 col-lg-5 col-md-6 col-sm-8 col-12 order-sm-0 order-1 text-sm-end">
                                    <p class="inv-customer-name">
                                        <?php echo e(env('COMPANY_NAME')); ?>

                                    </p>
                                    <p class="inv-street-addr">
                                        <?php echo e(env('COMPANY_ADDRESS')); ?>

                                    </p>
                                    <p class="inv-email-address">
                                        <?php echo e(env('COMPANY_EMAIL')); ?>

                                    </p>
                                    <p class="inv-email-address">
                                        <?php echo e(env('COMPANY_PHONE')); ?>

                                    </p>
                                </div>

                            </div>

                        </div>

                        <div class="inv--product-table-section">
                            <div class="table-responsive">
                                <table class="table">
                                    <thead class="">
                                        <tr>
                                            <th scope="col">S.No</th>
                                            <th scope="col">
                                                Package Name
                                            </th>
                                            <th scope="col">
                                                Category
                                            </th>
                                            <th class="text-end" scope="col">
                                                No of Month
                                            </th>
                                            <th class="text-end" scope="col">
                                                Qty
                                            </th>
                                            <th class="text-end" scope="col">
                                                Price
                                            </th>
                                            <th class="text-end" scope="col">
                                                 Discount
                                            </th>
                                            <th class="text-end" scope="col">
                                                Amount
                                            </th>

                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr>
                                            <td>1</td>
                                            <td>
                                                <?php echo e($invoice->servicePackage->package_name); ?>

                                            </td>
                                            <td class="">
                                                <?php echo e($invoice->servicePackage->serviceCategory->service_category_name); ?>

                                            </td>
                                            <td class="text-end">
                                                <?php echo e($invoice->no_of_month); ?>

                                            </td>
                                            <td class="text-end">
                                                <?php echo e($invoice->servicePackage->qty); ?>

                                            </td>
                                            <td class="text-end">
                                                $<?php echo e($invoice->price); ?>

                                            </td>
                                            <td class="text-end">
                                                $<?php echo e($invoice->discount); ?>

                                            </td>
                                            <td class="text-end">
                                                $<?php echo e($invoice->payable_amount); ?>

                                            </td>

                                        </tr>

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

                        <div class="inv--total-amounts">

                            <div class="row mt-4">
                                <div class="col-sm-5 col-12 order-sm-0 order-1">
                                </div>
                                <div class="col-sm-7 col-12 order-sm-1 order-0">
                                    <div class="text-sm-end">
                                        <div class="row">
                                            <div class="col-sm-8 col-7">
                                                <p class="">Sub Total :</p>
                                            </div>
                                            <div class="col-sm-4 col-5">
                                                <p class="">
                                                    $<?php echo e($invoice->payable_amount); ?>

                                                </p>
                                            </div>
                                            <div class="col-sm-8 col-7">
                                                <p class="">Tax 0% :</p>
                                            </div>
                                            <div class="col-sm-4 col-5">
                                                <p class="">
                                                    $0
                                                </p>
                                            </div>
                                            <div class="col-sm-8 col-7">
                                                <p class="">
                                                    <b>
                                                        Grand Total
                                                    </b>
                                                    :
                                                </p>
                                            </div>
                                            <div class="col-sm-4 col-5">
                                                <p class="">
                                                    <b>
                                                        $<?php echo e($invoice->payable_amount); ?>

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

                                            <?php if($invoice->payment_date): ?>
                                                <h2 class="text-success mt-4">(Paid)</h2>
                                                <p>
                                                    Payment Date: <?php echo e(date('d M Y', strtotime($invoice->payment_date))); ?>

                                                </p>
                                            <?php else: ?>
                                                <h2 class="text-danger mt-4">(Unpaid)</h2>
                                            <?php endif; ?>



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

                        </div>

                        <div class="inv--note">

                            <div class="row mt-4">
                                <div class="col-sm-12 col-12 order-sm-0 order-1">
                                    <p>Note: Thank you for using our service.</p>
                                    </p>
                                </div>
                            </div>

                        </div>

                    </div>
                </div>

            </div>


        </div>

    </div>

</div>
<?php /**PATH /home/ferdous-ahmed-khan/Project/rent-a-mailbox/resources/views/app/payment/invoice-body.blade.php ENDPATH**/ ?>