<?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, []); ?> 
        <div class="rounded-2xl border border-sky-200/70 bg-gradient-to-r from-sky-50 to-green-50 px-5 py-4">
            <h2 class="text-xl font-semibold leading-tight text-sky-900"><?php echo e(__('Drivers')); ?></h2>
            <p class="mt-1 text-sm text-sky-700"><?php echo e(__('Platform-wide driver listing with company and truck assignment.')); ?></p>
        </div>
     <?php $__env->endSlot(); ?>

    <div class="py-8">
        <div class="mx-auto max-w-7xl space-y-6 px-4 sm:px-6 lg:px-8">
            <form method="GET" class="rounded-2xl border border-sky-200/70 bg-gradient-to-r from-white to-sky-50/70 p-4 shadow-sm">
                <div class="flex flex-col gap-3 md:flex-row">
                    <input type="text" name="search" value="<?php echo e($search); ?>" placeholder="<?php echo e(__('Search name, email, phone')); ?>"
                        class="w-full rounded-lg border border-sky-300 bg-white px-4 py-2 text-sm focus:border-sky-500 focus:outline-none focus:ring-2 focus:ring-sky-100">
                    <button type="submit" class="rounded-lg bg-sky-600 px-4 py-2 text-sm font-semibold text-white hover:bg-sky-700"><?php echo e(__('Search')); ?></button>
                </div>
            </form>

            <div class="overflow-hidden rounded-2xl border border-sky-200/70 bg-white shadow-sm">
                <div class="overflow-x-auto">
                    <table class="min-w-full divide-y divide-sky-100">
                        <thead class="bg-sky-50/80">
                            <tr>
                                <th class="px-6 py-3 text-left text-xs font-semibold uppercase tracking-wide text-sky-700"><?php echo e(__('Driver')); ?></th>
                                <th class="px-6 py-3 text-left text-xs font-semibold uppercase tracking-wide text-sky-700"><?php echo e(__('Company')); ?></th>
                                <th class="px-6 py-3 text-left text-xs font-semibold uppercase tracking-wide text-sky-700"><?php echo e(__('Truck')); ?></th>
                                <th class="px-6 py-3 text-left text-xs font-semibold uppercase tracking-wide text-sky-700"><?php echo e(__('Contact')); ?></th>
                            </tr>
                        </thead>
                        <tbody class="divide-y divide-sky-100 bg-white">
                            <?php $__empty_1 = true; $__currentLoopData = $drivers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $driver): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                <tr>
                                    <td class="px-6 py-4">
                                        <div class="font-medium text-gray-900"><?php echo e($driver->name); ?></div>
                                        <div class="text-sm text-gray-600"><?php echo e($driver->email); ?></div>
                                    </td>
                                    <td class="px-6 py-4 text-sm text-gray-700"><?php echo e($driver->company?->name ?? __('No company')); ?></td>
                                    <td class="px-6 py-4 text-sm text-gray-700"><?php echo e($driver->truck?->number ?? __('Unassigned')); ?></td>
                                    <td class="px-6 py-4 text-sm text-gray-700"><?php echo e($driver->phone ?? __('N/A')); ?></td>
                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                <tr>
                                    <td colspan="4" class="px-6 py-6 text-center text-sm text-sky-700/80"><?php echo e(__('No drivers found.')); ?></td>
                                </tr>
                            <?php endif; ?>
                        </tbody>
                    </table>
                </div>

                <?php if($drivers->hasPages()): ?>
                    <div class="border-t border-sky-100 bg-sky-50/50 px-6 py-4">
                        <?php echo e($drivers->links()); ?>

                    </div>
                <?php endif; ?>
            </div>
        </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 D:\true-trucker\web\resources\views/admin/drivers/index.blade.php ENDPATH**/ ?>