<?php $__env->startSection('content'); ?> <div class="flex items-center justify-between mb-6"> <h1 class="text-2xl font-bold">Customers</h1> <form class="flex gap-2" method="GET" action="<?php echo e(route('admin.customers.index')); ?>"> <input name="search" class="rounded border-gray-300" placeholder="Search name/email" value="<?php echo e(request('search')); ?>" /> <button class="px-3 py-2 rounded bg-black text-white text-sm">Search</button> </form> </div> <div class="bg-white rounded-xl shadow overflow-hidden"> <table class="w-full text-sm"> <thead class="bg-gray-50"> <tr> <th class="p-4 text-left">Name</th> <th class="p-4 text-left">Email</th> <th class="p-4 text-left">Phone</th> <th class="p-4 text-right">Action</th> </tr> </thead> <tbody> <?php $__empty_1 = true; $__currentLoopData = $customers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $c): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <tr class="border-t"> <td class="p-4 font-medium"><?php echo e($c->name); ?></td> <td class="p-4"><?php echo e($c->email); ?></td> <td class="p-4"><?php echo e($c->customerProfile->phone ?? '-'); ?></td> <td class="p-4 text-right"> <a class="underline" href="<?php echo e(route('admin.customers.edit', $c)); ?>">Edit</a> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <tr><td class="p-6 text-gray-600" colspan="4">No customers found.</td></tr> <?php endif; ?> </tbody> </table> </div> <div class="mt-6"><?php echo e($customers->links()); ?></div> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.public', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/fikhri/Project6/landing-fpx/resources/views/admin/customers/index.blade.php ENDPATH**/ ?>