<div class="result-card-premium">
    <div class="result-header">
        <h5>
            <i class="bi bi-list-check text-primary"></i> Hasil Pelacakan
        </h5>
        <span class="badge bg-primary rounded-pill"><?php echo e(count($results)); ?> Data</span>
    </div>

    <div class="table-responsive">
        <table class="table-custom">
            <thead>
                <tr>
                    <th class="text-center" width="50">NO</th>
                    <th>AWB / TANGGAL</th>
                    <th>PENGIRIM</th>
                    <th>ASAL</th>
                    <th>TUJUAN</th>
                    <th class="text-center">STATUS</th>
                    <th width="40"></th>
                </tr>
            </thead>
            <tbody>
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $results; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $res): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <tr class="main-row">
                    <td class="text-center text-muted small"><?php echo e($index + 1); ?></td>
                    <td>
                        <div style="font-weight: 700; color: #0554c6;"><?php echo e($res->awb); ?></div>
                        <div class="text-muted" style="font-size: 0.8rem;">
                            <?php echo e($res->date ? \Carbon\Carbon::parse($res->date)->format('d M Y') : '-'); ?>

                        </div>
                    </td>
                    <td>
                        <div style="font-weight: 600;"><?php echo e($res->shipper); ?></div>
                        <div class="text-muted" style="font-size: 0.8rem;">To: <?php echo e($res->consignee); ?></div>
                    </td>
                    <td><?php echo e($res->origin); ?></td>
                    <td><?php echo e($res->destination); ?></td>
                    <td class="text-center">
                        <span class="badge <?php echo e($res->status == 'DELIVERED' ? 'bg-success' : 'bg-warning text-dark'); ?> px-3 py-2 rounded-pill" style="font-size: 0.75rem;">
                            <?php echo e($res->status); ?>

                        </span>
                    </td>
                    <td class="text-center">
                        <div class="toggle-icon">
                            <i class="bi bi-chevron-down"></i>
                        </div>
                    </td>
                </tr>
                
                <tr class="tracking-detail-row" style="display: none;">
                    <td colspan="7" class="p-0 border-0">
                        <div class="detail-wrapper">
                            <?php echo $__env->make('partials.tracking_detail', ['history' => $res->history, 'status' => $res->status], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                        </div>
                    </td>
                </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
            </tbody>
        </table>
    </div>
</div><?php /**PATH /var/www/html/resources/views/partials/result_standard.blade.php ENDPATH**/ ?>