<?php $__env->startSection('title', 'برنامه‌های غذایی'); ?>

<?php $__env->startSection('content'); ?>
    <h1 class="text-xl font-bold mb-6">برنامه‌های غذایی (نظارت)</h1>

    <div class="bg-white rounded-xl shadow-sm overflow-x-auto">
        <table class="w-full text-sm">
            <thead class="bg-gray-50 text-gray-500">
                <tr>
                    <th class="p-3 text-right">نام برنامه</th>
                    <th class="p-3 text-right">ورزشکار</th>
                    <th class="p-3 text-right">مربی</th>
                    <th class="p-3 text-right">وضعیت</th>
                    <th class="p-3 text-right">عملیات</th>
                </tr>
            </thead>
            <tbody class="divide-y">
                <?php $__empty_1 = true; $__currentLoopData = $plans; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $plan): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                    <tr>
                        <td class="p-3 font-medium"><?php echo e($plan->name); ?></td>
                        <td class="p-3"><?php echo e($plan->athlete->user->fullName()); ?></td>
                        <td class="p-3"><?php echo e($plan->coach->user->fullName()); ?></td>
                        <td class="p-3"><?php echo e($plan->status->label()); ?></td>
                        <td class="p-3"><a href="<?php echo e(route('admin.nutrition-plans.show', $plan)); ?>" class="text-blue-600 hover:underline">مشاهده</a></td>
                    </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                    <tr><td colspan="5" class="p-6 text-center text-gray-400">برنامه‌ای ثبت نشده است.</td></tr>
                <?php endif; ?>
            </tbody>
        </table>
    </div>

    <div class="mt-4"><?php echo e($plans->links()); ?></div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\Users\paradox\Desktop\fresh\abtin-sport-platform\resources\views/admin/nutrition-plans/index.blade.php ENDPATH**/ ?>