<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Order Invoice</title>
    <style>
        body { font-family: Arial, sans-serif; }
        .header { text-align: center; font-size: 24px; margin-bottom: 20px; }
        .section { display: flex; justify-content: space-between; margin-bottom: 20px; }
        .table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
        .table th, .table td { border: 1px solid #ddd; padding: 8px; }
        .table th { background-color: #f2f2f2; text-align: left; }
        .total-table { width: 100%; margin-top: 20px; }
        .total-table th, .total-table td { padding: 8px; text-align: right; }
    </style>
</head>
<body>
    <div class="header">
        American Distributors LLC Order Invoice
    </div>

    <div class="section">
        <div>
            <strong>Shipping Address:</strong><br>
            <?php echo e($shippingAddress); ?>

        </div>
        <div>
            <strong>Order ID:</strong> <?php echo e($order->ID); ?><br>
            <strong>Order Date:</strong> <?php echo e($orderDate); ?><br>
            <strong>Payment Method:</strong> <?php echo e($paymentMethod); ?>

        </div>
    </div>

    <table class="table">
        <thead>
            <tr>
                <th>Product</th>
                <th>Quantity</th>
                <th>Price</th>
            </tr>
        </thead>
        <tbody>
            <?php $__currentLoopData = $items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <tr>
                    <td>
                        <?php echo e($item['name']); ?><br>
                        <small>SKU: <?php echo e($item['sku']); ?></small>
                    </td>
                    <td><?php echo e($item['quantity']); ?></td>
                    <td>
                        <p style="position: relative; display: inline-block; color: rgb(0, 0, 0); font-weight: 600;">
                            
                            <span style="color: rgba(191, 191, 191, 0.4); font-size: 20px; pointer-events: none;">
                                <?php echo e($watermarkNumber); ?>

                            </span>
                            
                            
                            <?php if($item['subtotal'] > $item['total']): ?>
                                <del>$<?php echo e(number_format($item['subtotal'], 2)); ?></del><br>
                            <?php endif; ?>
                            
                            
                            $<?php echo e(number_format($item['total'], 2)); ?>

                        </p>
                    </td>
                </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </tbody>
        
    </table>

    <table class="total-table">
        
        <tr>
            <th>Shipping:</th>
            <td>$<?php echo e(number_format($shipping, 2)); ?></td>
        </tr>
        
        
        <tr>
            <th>Total:</th>
            <td>$<?php echo e(number_format($total, 2)); ?></td>
        </tr>
    </table>
</body>
</html>
<?php /**PATH /var/www/ecom-be-laravel/resources/views/pdf/order_invoice.blade.php ENDPATH**/ ?>