<?php if (isset($component)) { $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54 = $attributes; } ?>
<?php $component = App\View\Components\AppLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('app-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\AppLayout::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
     <?php $__env->slot('header', null, []); ?> 
        <h2 class="font-semibold text-xl leading-tight">
            Upload #<?php echo e($upload->id); ?> — <?php echo e($upload->original_name); ?>

        </h2>
     <?php $__env->endSlot(); ?>

    <div class="py-8 max-w-6xl mx-auto">
        <div class="mb-4">
            <a href="<?php echo e(route('emo.print', $upload)); ?>" class="px-3 py-2 bg-blue-600 text-white rounded">Print (A3)</a>
            <a href="<?php echo e(route('emo.pdf', $upload)); ?>" class="px-3 py-2 bg-indigo-600 text-white rounded ml-2">Export PDF</a>
        </div>

        <div class="bg-white shadow rounded p-4 overflow-x-auto">
            <table class="min-w-full text-sm">
                <thead class="bg-gray-100">
                <tr>
                    <th class="p-2 text-left">Receipt #</th>
                    <th class="p-2 text-left">EMO Number</th>
                    <th class="p-2 text-left">Sender</th>
                    <th class="p-2 text-left">Address</th>
                    <th class="p-2 text-left">Amount</th>
                    <th class="p-2 text-left">Booking</th>
                    <th class="p-2 text-left">Acceptance</th>
                </tr>
                </thead>
                <tbody class="divide-y divide-gray-100">
                <?php $__currentLoopData = $records; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $r): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <tr class="hover:bg-gray-50 transition">
                        <td class="p-2"><?php echo e($r->receipt_no); ?></td>
                        <td class="p-2"><?php echo e($r->emo_number); ?></td>
                        <td class="p-2"><?php echo e($r->sender_name); ?></td>
                        <td class="p-2"><?php echo e($r->sender_address); ?></td>
                        <td class="p-2">₹<?php echo e(number_format($r->emo_amount,2)); ?></td>
                        <td class="p-2"><?php echo e(optional($r->booking_date)->format('d/m/Y')); ?></td>
                        <td class="p-2"><?php echo e(optional($r->acceptance_date)->format('d/m/Y')); ?></td>
                    </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
            </table>
        </div>
    </div>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $attributes = $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $component = $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php /**PATH C:\project\laravel_project\emo-receipts\resources\views/emo/show.blade.php ENDPATH**/ ?>