<?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(__('Owners')); ?></h2>
            <p class="mt-1 text-sm text-sky-700"><?php echo e(__('All company owner accounts across the platform.')); ?></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 owner name or email')); ?>"
                        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(__('Owner')); ?></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(__('Joined')); ?></th>
                            </tr>
                        </thead>
                        <tbody class="divide-y divide-sky-100 bg-white">
                            <?php $__empty_1 = true; $__currentLoopData = $owners; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $owner): $__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($owner->name); ?></div>
                                        <div class="text-sm text-gray-600"><?php echo e($owner->email); ?></div>
                                    </td>
                                    <td class="px-6 py-4 text-sm text-gray-700"><?php echo e($owner->company?->name ?? __('No company')); ?></td>
                                    <td class="px-6 py-4 text-sm text-gray-700"><?php echo e($owner->created_at?->format('M d, Y')); ?></td>
                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                <tr>
                                    <td colspan="3" class="px-6 py-6 text-center text-sm text-sky-700/80"><?php echo e(__('No owners found.')); ?></td>
                                </tr>
                            <?php endif; ?>
                        </tbody>
                    </table>
                </div>

                <?php if($owners->hasPages()): ?>
                    <div class="border-t border-sky-100 bg-sky-50/50 px-6 py-4">
                        <?php echo e($owners->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/owners/index.blade.php ENDPATH**/ ?>