

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


<?php
$date = substr($viewcart[0]->created_at,0,10);
$setting = DB::table('settings')->first();
?>




    <style>
    h1,h2,h3,h4,h5,h6,p,span{
        font-family: sans-serif;
    }
    .sender_company{
        /* margin-top: 10px; */
        border-left: 6px solid #d8d7d7;
        padding-left: 11px;
        font-size: 12px;
    }
    .sender_company p{
        margin: 0;
    }
    .sender_company h5{
        margin: 0;
        font-weight: 800;
    }
    .recever_company{
        /* margin-top: 10px; */
        /*border-left: 6px solid #d8d7d7;
        padding-left: 11px;*/
        font-size: 12px;
    }
    .recever_company p{
        margin: 0;
    }
    .recever_company h5{
        margin: 0;
        font-weight: 800;
    }

    .table_header{
        /* padding-top: 14px; */
        padding-left: 14px;
        padding-right: 14px;
    }




    .tbody{
        border: 1px solid black;

    }

    /* Header Top */
    .header_top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: green;
    }

    .header_company_info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        margin-top: 50px;
    }


    /* my css */

    /* Table Style */

    table {
        box-sizing: border-box;
        border: 1px solid #000000;
        border-collapse: collapse;
        width: 100%;



        /* background: red; */
    }

    thead {
        background: red;
        border: 1px solid #000000;
        color: #fff;
    }
    th, td {
        padding: 10px;
        border-right: 1px solid #000000;

    }




    tbody tr td p {
		margin: 0px;
		padding: 0px 5px;
		font-size: 0.8rem;
		font-weight: 400;
		/* text-transform: uppercase; */
		/* background: red; */
	}

    .total_container {
        text-align: right;
        margin-top: 20px;
    }
    .total_container  p{
        margin: 0;
        font-size: 0.8rem;
        font-weight: 600;
    }

    /* my own table */
.signature_container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 70px;
}

.signature_1 {
    width: 50%;

}

.signature_2 {
    width: 50%;
    float: right;
    text-align: right;
}

.body_wrapper {
	background-image: url(<?php echo e(asset('public/assets')); ?>/paid.png);
    background-size: 30%;
    background-repeat: no-repeat;
    background-position: center center;
}

</style>



<div class="container">
	<div class="col-md-12">
		<div class="row">
			<div class="col-xl-3 col-lg-3 col-md-12 col-sm-12 col-12 mt-4">
				<?php echo $__env->make('User.Guest.user-invoice', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
			</div>

			<div class="col-xl-9 col-lg-9 col-md-12 col-sm-12 col-12 mt-4">
				<div class="col-md-12 p-4 invoice">

					<strong>Invoice NO: #<?php echo e($viewcart[0]->invoice_id); ?> </strong>

					<div class="col-md-12 col-12 p-4 mt-4 border">

						<div class="container" id="Invoice">
					        <div class="col-md-12">
					            <div class="text-center">
					                <h1 style="color: red;font-weight: 600;">PAID</h1>
					            </div>
					        </div>
					        <div class="col-md-12">
					            <!-- Heder Top Logo & Date -->
					            <div class="row  ">
					                <div class="col-md-6" >
					                    <img src="<?php echo e(asset('/public/siteImage')); ?>/<?php echo e($setting->logo); ?>" alt="" style="width: 77px;">
					                </div>
					                <div class="col-md-6">
					                    <h1 style="float: right;color: #e00000;font-weight: bold;font-size: 25px;border: 4px solid #e00000;padding: 10px;margin: 0;">INVOICE</h1>
					                    <br>
					                    <br>
					                    <br>
					                    <div style="float: right;font-size: 11px;font-weight: 600;">
					                        <span>Date: <?php echo e($date); ?> </span>
					                        &nbsp;&nbsp;
					                        <span>Invoice No: #<?php echo e($viewcart[0]->invoice_id); ?> </span>
					                        <br>
					                        <span>Payment Status: <?php echo e($viewcart[0]->payment_type); ?></span>
					                    </div>
					                </div>
					            </div>
					        </div>
					       <!-- Company Info -->
					        <div class="col-md-12" style=" margin-top: -50px; padding: 0; ">

					            <div class="row header_company_info">
					                <div class="col-md-6">
					                    <div class="sender_company">
					                        <h5><?php echo e($setting->title); ?></h5>
					                        <p style="max-width: 210px"><?php echo e($setting->address); ?></p>
					                        <p><?php echo e($setting->hotline); ?></p>
					                    </div>
					                </div>
					                <div class="col-md-6">
					                    <div class="recever_company" style="float: right;">
					                        <h5><?php echo e($viewcart[0]->first_name); ?>&nbsp;<?php echo e($viewcart[0]->last_name); ?></h5>
					                        <p><?php echo e($viewcart[0]->address); ?></p>
					                        <p><?php echo e($viewcart[0]->phone); ?></p>
					                        <p><?php echo e($viewcart[0]->email); ?></p>
					                    </div>
					                </div>
					            </div>
					        </div>


					        <!-- Start Table -->
					        <div class="col-md-12">
					            <div class="row table_paid_wrapper">

					                    <!-- Start Table -->

					                    <table class="table_wrapper" style="">
					                        <thead>
					                            <tr>
													<th>QTY</th>
                                                    <th>SKU</th>
													<th>Product</th>
													<th>Price</th>
													<th>Amount</th>
					                            </tr>
					                        </thead>

					                        <tbody class="body_wrapper">

												<?php
												$sl=1;

												$payment =  $balance->payment;
												?>

												<?php if($payment>0): ?>
												$payments=$payment;
												<?php else: ?>

												<?php endif; ?>

												<?php if(isset($viewcart)): ?>
					                            <?php $__currentLoopData = $viewcart; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cart): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

					                            <tr >
					                                <td style="width: 75px; text-align: right;">
					                                    <p><?php echo e($cart->quantity); ?></p>
					                                </td>

                                                    <td style="text-align: left;">
					                                    <p><?php echo e($cart->sku); ?></p>
					                                </td>
					                                <td style="text-align: left;">
					                                    <p><?php echo e($cart->product_name); ?> - <span><?php echo e($cart->size ?? ''); ?> - <?php echo e($cart->color ?? ''); ?></span></p>
					                                </td>

					                                <td style="width: 75px; text-align: right;">
					                                    <p><?php echo e($cart->current_price); ?> Tk</p>
					                                </td>

					                                <td style="width: 75px; text-align: right;">
					                                    <p><?php echo e($cart->current_price * $cart->quantity); ?> Tk</p>
					                                </td>

					                            </tr>


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

					                            <?php if(count($viewcart) == 1): ?>
					                                <tr >
					                                    <td style="height: 348px; border-right: 1px solid #000000"></td>
					                                    <td style="height: 348px; border-right: 1px solid #000000"></td>
					                                    <td style="height: 348px; border-right: 1px solid #000000"></td>
					                                    <td style="height: 348px; border-right: 1px solid #000000"></td>
					                                    <td style="height: 348px; border-right: 1px solid #000000"></td>
					                                </tr>
					                            <?php elseif(count($viewcart) == 2): ?>
					                                <tr >
					                                    <td style="height: 300px; border-right: 1px solid #000000"></td>
					                                    <td style="height: 300px; border-right: 1px solid #000000"></td>
					                                    <td style="height: 300px; border-right: 1px solid #000000"></td>
					                                    <td style="height: 300px; border-right: 1px solid #000000"></td>
					                                    <td style="height: 300px; border-right: 1px solid #000000"></td>
					                                </tr>

					                            <?php elseif(count($viewcart) == 3): ?>
					                                <tr >
					                                    <td style="height: 240px; border-right: 1px solid #000000"></td>
					                                    <td style="height: 240px; border-right: 1px solid #000000"></td>
					                                    <td style="height: 240px; border-right: 1px solid #000000"></td>
					                                    <td style="height: 240px; border-right: 1px solid #000000"></td>
					                                    <td style="height: 240px; border-right: 1px solid #000000"></td>
					                                </tr>
					                            <?php elseif(count($viewcart) == 4): ?>
					                                <tr >
					                                    <td style="height: 100px; border-right: 1px solid #000000"></td>
					                                    <td style="height: 100px; border-right: 1px solid #000000"></td>
					                                    <td style="height: 100px; border-right: 1px solid #000000"></td>
					                                    <td style="height: 100px; border-right: 1px solid #000000"></td>
					                                    <td style="height: 100px; border-right: 1px solid #000000"></td>
					                                </tr>
					                            <?php elseif(count($viewcart) == 5): ?>
					                                <tr >
					                                    <td style="height: 80px; border-right: 1px solid #000000"></td>
					                                    <td style="height: 80px; border-right: 1px solid #000000"></td>
					                                    <td style="height: 80px; border-right: 1px solid #000000"></td>
					                                    <td style="height: 80px; border-right: 1px solid #000000"></td>
					                                    <td style="height: 80px; border-right: 1px solid #000000"></td>
					                                </tr>
					                            <?php endif; ?>


					                        </tbody>

					                    </table>

					                    <div class="total_container">
					                        <p>Sub Total: <?php echo e($viewcart[0]->sub_total); ?> Tk</p>
					                        <p>Delivery Charge(+): <?php echo e($viewcart[0]->delivery_charge); ?> Tk</p>
					                        <?php if($viewcart[0]->coupon_id !='' && $viewcart[0]->discount>0): ?>
					                        <p>Discount(-): <?php echo e($viewcart[0]->discount); ?> Tk</p>
					                        <?php endif; ?>
					                    </div>
					                    <!-- End Table -->

					            </div>
					             <!-- <div class="signature_container row">
					                <div class="col-md-6 signature_1">
					                    <p style="margin: 0">------------------------------------</p>
					                    <p style="margin: 0; margin-left: 20px">Customer Signature</p>
					                </div>
					                <div class="col-md-6  signature_2">
					                    <p style="margin: 0">------------------------------------</p>
					                    <p style="margin: 0; margin-right: 20px">Authorize Signature</p>
					                </div>
					             </div> -->
					        </div>
					    </div>

						<br>
						<center><span style="font-weight:600; font-size:13px;">[ Note: This is computer generate copy. No signature is required ]</span></center>
					</div>


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




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




<?php echo $__env->make('User.layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\xampp\htdocs\office\electronics\resources\views/User/Guest/viewinvoice.blade.php ENDPATH**/ ?>