<?php $__env->startSection('title', 'Weekly Specials'); ?>

<?php $__env->startSection('content'); ?>
    <div class="flex justify-between items-center mb-6">
        <h1 class="text-2xl font-bold">Weekly Specials</h1>
        <a href="<?php echo e(route('admin.weekly-specials.create')); ?>" class="bg-blue-600 text-white px-4 py-2 rounded hover:bg-blue-700">Add Weekly Special</a>
    </div>

    <div class="bg-white rounded-lg shadow overflow-hidden">
        <table class="w-full">
            <thead class="bg-gray-50">
                <tr>
                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">ID</th>
                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">Name</th>
                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">Slug</th>
                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">Max Discount</th>
                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">Starts</th>
                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">Ends</th>
                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">Active</th>
                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">Actions</th>
                </tr>
            </thead>
            <tbody class="divide-y divide-gray-200">
                <?php $__empty_1 = true; $__currentLoopData = $weeklySpecials; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ws): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                    <tr class="hover:bg-gray-50">
                        <td class="px-6 py-4"><?php echo e($ws->id); ?></td>
                        <td class="px-6 py-4"><?php echo e($ws->name); ?></td>
                        <td class="px-6 py-4"><?php echo e($ws->slug); ?></td>
                        <td class="px-6 py-4"><?php echo e($ws->max_discount); ?>%</td>
                        <td class="px-6 py-4"><?php echo e($ws->starts_at); ?></td>
                        <td class="px-6 py-4"><?php echo e($ws->ends_at); ?></td>
                        <td class="px-6 py-4"><?php echo e($ws->is_active ? 'Yes' : 'No'); ?></td>
                        <td class="px-6 py-4 space-x-2">
                            <a href="<?php echo e(route('admin.weekly-specials.edit', $ws->id)); ?>" class="text-blue-600 hover:underline">Edit</a>
                            <form action="<?php echo e(route('admin.weekly-specials.destroy', $ws->id)); ?>" method="POST" class="inline" onsubmit="return confirm('Delete?')">
                                <?php echo csrf_field(); ?>
                                <?php echo method_field('DELETE'); ?>
                                <button type="submit" class="text-red-600 hover:underline">Delete</button>
                            </form>
                        </td>
                    </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                    <tr><td colspan="8" class="px-6 py-4 text-center text-gray-500">No weekly specials found.</td></tr>
                <?php endif; ?>
            </tbody>
        </table>
    </div>
    <div class="mt-4"><?php echo e($weeklySpecials->links()); ?></div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin::layouts.master', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH G:\abo bilal nuisan\bernie_store\bernie-backend\Modules/Admin\resources/views/weekly-specials/index.blade.php ENDPATH**/ ?>