
<div class="container-fluid">
    <div class="invoice-box" style="max-width: 800px; margin: 0 auto; padding: 20px; border: 1px solid #eee; box-shadow: 0 0 10px rgba(0,0,0,0.15); font-size: 14px; line-height: 1.5; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background: #fff; margin-bottom: 30px; page-break-after: always;">

        <!-- Header -->
        <div style="text-align: center; margin-bottom: 30px;">
            <h1 style="margin: 0; font-size: 32px; font-weight: bold;">STARUP MIND</h1>
            <p style="margin: 5px 0 0; font-size: 16px;">Your Trusted Technology Partner</p>
        </div>

        <!-- Bill To Section -->
        <table style="width: 100%; margin-bottom: 20px;">
            <tr>
                <td style="vertical-align: top; width: 50%;">
                    <strong>Bill To:</strong><br>
                    Name: <?php echo e($quotation->bill_to); ?><br>
                    Company Name: <?php echo e($quotation->company_name); ?><br>
                    Mobile: <?php echo e($quotation->mobile ?? ''); ?><br>
                    E-Mail: <?php echo e($quotation->email ?? ''); ?>

                </td>
                <td style="vertical-align: top; text-align: right;">
                    <strong>Date:</strong> <?php echo e(\Carbon\Carbon::parse($quotation->date)->format('M d, Y')); ?><br>
                    <strong>Quotation #:</strong> <?php echo e($quotation->quotation_number); ?>

                </td>
            </tr>
        </table>

        <!-- Items Table -->
        <table style="width: 100%; border-collapse: collapse; margin-bottom: 20px;">
            <thead>
                <tr style="background: #f2f2f2;">
                    <th style="border: 1px solid #ddd; padding: 8px; text-align: left;">Description</th>
                    <th style="border: 1px solid #ddd; padding: 8px; text-align: center;">Qty</th>
                    <th style="border: 1px solid #ddd; padding: 8px; text-align: right;">Rate</th>
                    <th style="border: 1px solid #ddd; padding: 8px; text-align: right;">Amount</th>
                </tr>
            </thead>
            <tbody>
                <?php $__empty_1 = true; $__currentLoopData = $quotation->items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                    <tr>
                        <td style="border: 1px solid #ddd; padding: 8px;"><?php echo e($item->description); ?></td>
                        <td style="border: 1px solid #ddd; padding: 8px; text-align: center;"><?php echo e($item->quantity); ?></td>
                        <td style="border: 1px solid #ddd; padding: 8px; text-align: right;"><?php echo e(number_format($item->rate, 2)); ?></td>
                        <td style="border: 1px solid #ddd; padding: 8px; text-align: right;"><?php echo e(number_format($item->amount, 2)); ?></td>
                    </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                    <tr>
                        <td colspan="4" style="border: 1px solid #ddd; padding: 8px; text-align: center;">No items found.</td>
                    </tr>
                <?php endif; ?>
            </tbody>
            <tfoot>
                <tr>
                    <td colspan="3" style="border: 1px solid #ddd; padding: 8px; text-align: right;"><strong>Total</strong></td>
                    <td style="border: 1px solid #ddd; padding: 8px; text-align: right;"><strong><?php echo e(number_format($quotation->total, 2)); ?></strong></td>
                </tr>
            </tfoot>
        </table>

        <!-- Amount in Words -->
        <p style="margin: 10px 0;"><strong>In Word:</strong>
            
            <?php
                // Example: if you have a helper function numberToWords($amount)
                // echo numberToWords($quotation->total) . ' taka only.';
            ?>
            Twenty two thousand five hundred taka only. <!-- Placeholder -->
        </p>

        <!-- Note -->
        <?php if($quotation->note): ?>
            <p style="margin: 10px 0;"><strong>Note:</strong> <?php echo e($quotation->note); ?></p>
        <?php else: ?>
            <p style="margin: 10px 0;"><strong>Note:</strong></p>
        <?php endif; ?>
        <!-- Footer -->
        <div style="margin-top: 40px; text-align: left;">
            <p>Thank you for your business with us</p>
            <br><br>
            <p><strong>Authorized Signature</strong></p>
        </div>
    </div>
    </div>

<script>
    window.onload = function() {
        window.print();
    }
</script>
<?php /**PATH C:\Users\startup sabbir\Desktop\jannat\sarvice-accounts\accounting-system\resources\views/quotations/show.blade.php ENDPATH**/ ?>