<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?php echo e($order->invoice_number); ?> - MyOpticals</title>
    <style>
        body { font-family: Arial, sans-serif; color: #111827; max-width: 850px; margin: 30px auto; padding: 20px; }
        .header { display: flex; justify-content: space-between; border-bottom: 3px solid #EC4899; padding-bottom: 18px; }
        table { width: 100%; border-collapse: collapse; margin-top: 24px; }
        th, td { padding: 11px; border-bottom: 1px solid #E5E7EB; text-align: left; }
        th { background: #F8FAFC; }
        .totals { width: 330px; margin: 25px 0 0 auto; }
        .totals div { display: flex; justify-content: space-between; padding: 6px; }
        .grand { font-size: 1.2rem; font-weight: bold; border-top: 2px solid #111827; }
        @media print { .no-print { display: none; } body { margin: 0 auto; } }
    </style>
</head>
<body>
    <button class="no-print" onclick="window.print()" style="float: right; padding: 10px 18px;">Print Invoice</button>
    <div class="header">
        <div><h1 style="margin: 0;"><?php echo e($order->vendor->vendorProfile->vendor_name ?? 'MyOpticals Store'); ?></h1><p><?php echo e($order->vendor->vendorProfile->address ?? ''); ?><br><?php echo e($order->vendor->phone); ?></p></div>
        <div style="text-align: right;"><h2>INVOICE</h2><strong><?php echo e($order->invoice_number); ?></strong><p><?php echo e($order->ordered_at->format('d M Y, h:i A')); ?></p></div>
    </div>
    <div style="margin-top: 22px;"><strong>Bill To:</strong><br><?php echo e($order->customer_name); ?><br><?php echo e($order->customer_phone); ?><br><?php echo e($order->customer_email); ?><br><?php echo e($order->billing_address); ?></div>
    <table><thead><tr><th>Item</th><th>Type</th><th>Qty</th><th>Rate</th><th>Amount</th></tr></thead><tbody><?php $__currentLoopData = $order->items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><tr><td><?php echo e($item->item_name); ?></td><td><?php echo e(ucfirst($item->item_type)); ?></td><td><?php echo e($item->quantity); ?></td><td>₹<?php echo e(number_format($item->unit_price, 2)); ?></td><td>₹<?php echo e(number_format($item->total_price, 2)); ?></td></tr><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></tbody></table>
    <div class="totals"><div><span>Subtotal</span><span>₹<?php echo e(number_format($order->subtotal, 2)); ?></span></div><div><span>Discount</span><span>- ₹<?php echo e(number_format($order->discount_amount, 2)); ?></span></div><div class="grand"><span>Total</span><span>₹<?php echo e(number_format($order->total, 2)); ?></span></div><div><span>Payment</span><span><?php echo e(ucfirst($order->payment_status)); ?></span></div></div>
    <?php if($order->notes): ?><p><strong>Notes:</strong> <?php echo e($order->notes); ?></p><?php endif; ?>
    <p style="text-align: center; margin-top: 45px; color: #64748B;">Thank you for shopping with us.</p>
</body>
</html>
<?php /**PATH D:\Clients\MInfosoftware\LiveApp\MyOpticals\backend\resources\views/vendor/bill.blade.php ENDPATH**/ ?>