<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Print Food Distribution List</title>
    <style>
        body { font-family: Arial, sans-serif; margin: 20px; color: #000; line-height: 1.4; }
        .text-center { text-align: center; }
        
        /* Header Section Styling */
        .header-section { margin-bottom: 20px; }
        .header-section h3 { margin: 0 0 2px 0; font-size: 18px; font-weight: bold; color: #111; }
        .header-section h4 { margin: 0 0 2px 0; font-size: 15px; font-weight: bold; color: #222; }
        .header-section .district { margin: 0 0 10px 0; font-size: 14px; font-weight: bold; }
        .header-section .report-title { margin: 10px 0 8px 0; font-size: 16px; font-weight: bold; text-decoration: underline; }
        
        /* Meta Info (Sale Point, Dealer Name, Word) Group */
        .meta-info { font-size: 13px; margin: 0 auto; max-width: 600px; line-height: 1.5; }
        .meta-info p { margin: 1px 0; }

        /* Standard Box Table */
        table.print-table { width: 100%; border-collapse: collapse; margin-top: 15px; font-size: 13px; }
        table.print-table th, table.print-table td { border: 1px solid #000; padding: 6px 8px; text-align: left; }
        table.print-table th { background-color: #f2f2f2; font-weight: bold; }
        
        /* Print media rules */
        @media print {
            body { margin: 10px; }
            .no-print { display: none; }
        }
    </style>
</head>
<body>

    <div class="text-center header-section">
        <h3>গণপ্রজাতন্ত্রী বাংলাদেশ সরকার</h3>
        <h4>জেলা খাদ্য নিয়ন্ত্রকের কার্যালয়</h4>
        <div class="district">শেরপুর</div>
        
        <div class="report-title">খাদ্য বিতরণ তালিকা</div>

        <div class="meta-info">
            <p><strong>Sale Point:</strong> <?php echo e($printSalePoint); ?> &nbsp;|&nbsp; <strong>Word No:</strong> <?php echo e($printWordNumber); ?></p>
            <p><strong>Dealer Name:</strong> <?php echo e($printDealerName); ?></p>
        </div>
    </div>

    <table class="print-table">
        <thead>
            <tr>
                <th style="width: 8%;">ক্রমিক নং</th>
                <th style="width: 15%;">এন আই ডি</th>
                <th style="width: 20%;">ভোক্তার নাম</th>
                <th style="width: 15%;">পণ্যের নাম</th>
                <th style="width: 17%;">তারিখ</th>
                <th style="width: 25%;">ডিস্ট্রিবিউটর</th>
            </tr>
        </thead>
        <tbody>
            <?php $__empty_1 = true; $__currentLoopData = $distributions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $distribution): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
            <tr>
                <td><?php echo e($index + 1); ?></td>
                <td><?php echo e($distribution->nid_number); ?></td>
                <td><?php echo e($distribution->client->client_name ?? 'N/A'); ?></td>
                <td><?php echo e($distribution->client->product_name ?? 'N/A'); ?></td>
                <td>
                    <?php echo e(\Carbon\Carbon::parse($distribution->distributed_at)->format('d M, Y')); ?>

                </td>
                <td>
                    <?php echo e($distribution->user->name ?? 'N/A'); ?> (<?php echo e($distribution->dealer->sale_point ?? 'N/A'); ?>)
                </td>
            </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
            <tr>
                <td colspan="6" style="text-align: center; padding: 20px;">No distribution records found.</td>
            </tr>
            <?php endif; ?>
        </tbody>
    </table>

    <script>
        window.onload = function() {
            window.print();
        }
    </script>
</body>
</html><?php /**PATH C:\Users\User\Herd\dcfood_management\resources\views\pages\distributions\print.blade.php ENDPATH**/ ?>