<?php if (isset($component)) { $__componentOriginal1a6cca1fb3b05e19b47840b98800a235 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal1a6cca1fb3b05e19b47840b98800a235 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.layouts.dashboard','data' => ['title' => 'All Trackings']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('layouts.dashboard'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['title' => 'All Trackings']); ?>
    <?php if (isset($component)) { $__componentOriginald938e474240bb91dae7eded41f706ecb = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginald938e474240bb91dae7eded41f706ecb = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.widgets.page-header','data' => ['title' => 'All Trackings']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('widgets.page-header'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['title' => 'All Trackings']); ?>
        <div class="breadcrumb-item"><a href="javascript:void(0)"> Manage Trackings </a></div>
     <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginald938e474240bb91dae7eded41f706ecb)): ?>
<?php $attributes = $__attributesOriginald938e474240bb91dae7eded41f706ecb; ?>
<?php unset($__attributesOriginald938e474240bb91dae7eded41f706ecb); ?>
<?php endif; ?>
<?php if (isset($__componentOriginald938e474240bb91dae7eded41f706ecb)): ?>
<?php $component = $__componentOriginald938e474240bb91dae7eded41f706ecb; ?>
<?php unset($__componentOriginald938e474240bb91dae7eded41f706ecb); ?>
<?php endif; ?>

    <div class="card">
        <div class="card-body">
            <div class="table-responsive-sm table-responsive-md">
                <table class="table table-bordered" id="trackings-table">
                    <thead>
                        <tr>
                            <th>
                                S/N
                            </th>
                            <th class="fw-bold">Tracking&nbsp;Code</th>
                            <th>Status</th>
                            <th>Date&nbsp;Sent</th>
                            <th>Date&nbsp;Expected</th>
                            <th>Progress</th>
                            <th>Current&nbsp;Location</th>
                            <th></th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $__currentLoopData = $trackings; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tracking): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td><?php echo e($id++); ?></td>
                                <td><?php echo e($tracking->shipment->tracking_code); ?></td>
                                <td>
                                    <div
                                        class="d-flex align-items-center text-<?php echo e(status_class($tracking->status_code)); ?>">
                                        <span
                                            class="badge-dot me-2 bg-<?php echo e(status_class($tracking->status_code)); ?>"></span>
                                        <span class="text-capitalize"><?php echo status($tracking->status_code); ?></span>
                                    </div>
                                </td>
                                <td><?php echo e($tracking->date_sent->format('d/m/Y')); ?></td>
                                <td><?php echo e($tracking->date_expected->format('d/m/Y')); ?></td>
                                <td><?php echo e($tracking->progress); ?>%</td>
                                <td><?php echo e($tracking->current_location); ?></td>

                                <td class="text-end">
                                    <div class="dropdown">
                                        <a href="#" class="px-2" data-bs-toggle="dropdown">
                                            <i class="feather icon-more-vertical"></i>
                                        </a>
                                        <ul class="dropdown-menu dropdown-menu-end">
                                            <li>
                                                <a href="<?php echo e(route('tracking.single', $tracking->id)); ?>"
                                                    class="dropdown-item" wire:navigate>
                                                    <div class="d-flex align-items-center">
                                                        <i class="feather icon-eye"></i>
                                                        <span class="ms-2">View Tracking</span>
                                                    </div>
                                                </a>
                                            </li>

                                            <li>
                                                <a href="<?php echo e(route('tracking.edit', $tracking->id)); ?>"
                                                    wire:navigate class="dropdown-item">
                                                    <div class="d-flex align-items-center">
                                                        <i class="feather icon-edit"></i>
                                                        <span class="ms-2">Edit Tracking</span>
                                                    </div>
                                                </a>
                                            </li>
                                        </ul>
                                    </div>
                                </td>
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>

    <script>
        $('#trackings-table').DataTable({
            columnDefs: [{
                targets: [7],
                orderable: false
            }]
        });
    </script>

    <?php if(session('success')): ?>
        <script>
            toast.success(<?php echo \Illuminate\Support\Js::from(session('success'))->toHtml() ?>)
        </script>
    <?php endif; ?>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal1a6cca1fb3b05e19b47840b98800a235)): ?>
<?php $attributes = $__attributesOriginal1a6cca1fb3b05e19b47840b98800a235; ?>
<?php unset($__attributesOriginal1a6cca1fb3b05e19b47840b98800a235); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal1a6cca1fb3b05e19b47840b98800a235)): ?>
<?php $component = $__componentOriginal1a6cca1fb3b05e19b47840b98800a235; ?>
<?php unset($__componentOriginal1a6cca1fb3b05e19b47840b98800a235); ?>
<?php endif; ?>
<?php /**PATH /home/u334869836/domains/xpressdeliveryltd.com/public_html/resources/views/admin/tracking/all.blade.php ENDPATH**/ ?>