<?php $__env->startSection('title', 'برنامه تمرینی جدید'); ?>

<?php $__env->startSection('content'); ?>
    <h1 class="text-xl font-bold mb-2">برنامه تمرینی جدید</h1>
    <p class="text-sm text-gray-500 mb-6">برای: <?php echo e($athlete->user->fullName()); ?></p>

    <form method="POST" action="<?php echo e(route('coach.athletes.workout-plans.store', $athlete)); ?>" class="bg-white rounded-xl shadow-sm p-6 max-w-lg space-y-4">
        <?php echo csrf_field(); ?>

        <div>
            <label class="block text-sm mb-1">نام برنامه *</label>
            <input type="text" name="name" value="<?php echo e(old('name')); ?>" placeholder="مثلاً: برنامه ۸ هفته‌ای عضله‌سازی"
                   class="w-full border rounded-lg px-3 py-2" required>
            <?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <p class="text-red-600 text-xs mt-1"><?php echo e($message); ?></p> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
        </div>

        <div>
            <label class="block text-sm mb-1">هدف</label>
            <select name="goal_id" class="w-full border rounded-lg px-3 py-2">
                <option value="">—</option>
                <?php $__currentLoopData = $goals; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $goal): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <option value="<?php echo e($goal->id); ?>" <?php if(old('goal_id') == $goal->id): echo 'selected'; endif; ?>><?php echo e($goal->title); ?></option>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </select>
        </div>

        <div class="grid grid-cols-2 gap-4">
            <div>
                <label class="block text-sm mb-1">مدت برنامه (هفته)</label>
                <input type="number" name="duration_weeks" value="<?php echo e(old('duration_weeks')); ?>" class="w-full border rounded-lg px-3 py-2">
            </div>
            <div>
                <label class="block text-sm mb-1">جلسات در هفته</label>
                <input type="number" name="sessions_per_week" value="<?php echo e(old('sessions_per_week')); ?>" class="w-full border rounded-lg px-3 py-2">
            </div>
        </div>

        <div>
            <label class="block text-sm mb-1">توضیحات</label>
            <textarea name="description" rows="3" class="w-full border rounded-lg px-3 py-2"><?php echo e(old('description')); ?></textarea>
        </div>

        <button class="bg-gray-900 text-white px-5 py-2 rounded-lg text-sm">ساخت برنامه و رفتن به سازنده جلسات</button>
    </form>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('coach.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/coach/workout-plans/create.blade.php ENDPATH**/ ?>