<html>
    <head>
    <meta charset="utf-8">
    <?php $__currentLoopData = $orderdetail; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $invoice): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <title>MyAIO Invoice <?php echo e(substr($invoice->invoice_id, 6, -8)); ?></title>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
  
  <style>
    p{
        font-size:14px !important;
        margin: 0px !important;
        line-height:1.5em !important;
    }
  </style>
    </head>
<body>

        <div class="col-lg-7" style='padding:30px;'>
            <div class='invoice-sec' style='padding: 20px;box-shadow: 0px 0px 50px -10px #d3d3d3bf;'>
            <?php $__currentLoopData = $orderdetail; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $detail): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <table width="100%" style="border:0px;" cellspacing="0">
            <tr>
                <td>
		<img src="<?php echo e(public_path('/open-ai-logo.png')); ?>" width='80px'>
                <p style='line-height:2.4em !important;'>hello@toppagerankers.com</p>
                <p>03231700897</p>
                </td>
                <td style="text-align: right;" colspan="3">
                    <h3 style="margin-bottom: 7px;">Order #<?php echo e(strtoupper($detail->ordernumber)); ?></h3>
                    <strong style="background:green;color:white;border-radius: 5px;padding:3px 6px;">PAID</strong>
                </td>
            </tr>
                <tr>
                 <td colspan="4">   
                    <h2 style="padding:3px 10px !important;background:#5998ff;color:white;margin: 20px 0px 10px 0px;font-size:22px !important;">Billed To</h2>  
                </td>  
                </tr>
                <tr>
                    <td>
                    <h3 style="margin:0 0 8px 0;font-size:20px !important;"><?php echo e($detail->first_name); ?> <?php echo e($detail->last_name); ?></h3>
                    <p><?php echo e($detail->address); ?></p>
                    <p><?php echo e($detail->email); ?></p>
                    <p><?php echo e($detail->phone); ?></p>
                </td>
                <td style="text-align: right;" colspan="3">
                    <h3 style='font-size:20px;style=font-size:20px;padding:0px !important;margin:0px !important;'>Invoice Date:</h3>
                    <p><?php echo e($detail->created_at->format('m/d/Y')); ?></p>
                    <br>
                    <h3 style='font-size:20px;padding:0px !important;margin:0px !important;'>Transaction No:</h3>
                    <p><?php echo e($detail->invoice_id); ?></p>
                </td>
                </tr>
                <!-- business info -->
                <tr>
                    <td colspan="4">
                        
                    <h2 style="padding:3px 10px !important;background:#5760DE;color:white;margin: 20px 0px 10px 0px;font-size:22px;">Business Information</h2>  
                </td>  
                </tr>
                <tr>
                    <td>
                    <h3 style="margin:0;font-size:18px;"><?php echo e($detail->bname); ?></h3>
                    <p><?php echo e($detail->bemail); ?></p>
                    <p><?php echo e($detail->bphone); ?></p>
                    <br>
                    <h3 style='font-size:20px !important;'>Services</h3>
                    <p><?php echo e($detail->services); ?></p>
                    <br>
                    <h3 style='font-size:20px !important;'>Assist By:</h3>
                    <p><?php echo e($detail->closer_name); ?></p>
                </td>
                <td style="text-align: right;" colspan="3">
                    <h3 style='font-size:20px;'>Radius Address</h3>
                    <p><?php echo e($detail->radius_address); ?></p>
                    <br>
                    <h3 style='font-size:20px;'>Radius</h3>
                    <p><?php echo e($detail->radius); ?> Miles</p>
                </td>
                </tr>
                <!-- order summary -->
                <tr>
                    <td colspan="4">
                        
                    <h2 style="padding:3px 10px !important;background:#BB27AD;color:white;margin: 20px 0px 10px 0px;font-size:22px;">Order Summary</h2>  
                </td>  
                </tr>

                <tr style='border-bottom:1px solid lightgray !important;'>
                    <th style='font-size:16px;padding-bottom:5px;'>Item</th>
                    <th style='font-size:16px;padding-bottom:5px;'>Price</th>
                    <th style='font-size:16px;text-align:right !important;padding-bottom:5px;'>Quantity</th>
                    <th style="font-size:16px;text-align: right;padding-bottom:5px;">Total</th>
                </tr>
                <tr>
                   
                    <td style="text-align: left !important;width:65%;">
                        <h4 style='font-size:18px;margin:5px 0px 0px 0px !important;'><?php echo e($detail->productname); ?></h4>
                    <p><?php echo e($detail->productdescription); ?></p>
                </td>
                <td>$<?php echo e($detail->price); ?></td>
                <td style="text-align: right !important;">1</td>
                <td style="text-align: right !important;">$<?php echo e($detail->price); ?></td>
                </tr>
                <?php if($detail->code != ''): ?>
                <tr>
                    <th colspan="3" style="text-align: right !important;padding-bottom:5px;">Coupon:</th>
                    <td style="text-align: right !important;padding-bottom:5px;"><?php echo e($detail->code); ?></td>
                </tr>
                <tr>
                    <th colspan="3" style="text-align: right !important;padding-bottom:5px;">Discount:</th>
                    <td style="text-align: right !important;padding-bottom:5px;">-<?php echo e($detail->discount_price); ?></td>
                </tr>
                <tr>
                    <th colspan="3" style="text-align: right !important;padding-bottom:5px;">Sub Total</th>
                    <td style="text-align: right !important;padding-bottom:5px;">$<?php echo e($detail->newprice); ?></td>
                </tr>
                <tr style='border-top:1px solid lightgray !important;'>
                    <th colspan="3" style="text-align: right !important;padding-top:10px !important;">Total</th>
                    <th style="font-size:24px;text-align:right !important;padding-top:10px !important;">$<?php echo e($detail->newprice); ?></th>
                </tr>
                <?php else: ?>
                <tr>
                    <th colspan="3" style="text-align: right !important;padding-bottom:5px;">Sub Total</th>
                    <td style="text-align: right !important;padding-bottom:5px;">$<?php echo e($detail->price); ?></td>
                </tr>
                <tr style='border-top:1px solid lightgray !important;'>
                    <th colspan="3" style="text-align: right !important;padding-top:10px !important;">Total</th>
                    <th style="font-size:24px;text-align:right !important;padding-top:10px !important;">$<?php echo e($detail->price); ?></th>
                </tr>
                <?php endif; ?>
        </table>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        <p style='text-align:center;font-size:13px !important;margin-top:50px !important;color:gray;'>&copy; 2023 MYAIO.COM. ALL RIGHTS RESERVED.</p>
        </div>
        </div><!-- end col -->


</body>
</html><?php /**PATH /Applications/XAMPP/xamppfiles/htdocs/tprproject/get-myaio-app/resources/views/admin/orderview.blade.php ENDPATH**/ ?>