<div class="grid md:grid-cols-2 gap-5">
    <div>
        <label class="text-sm font-medium">Student name</label>
        <input name="student_name" value="<?php echo e(old('student_name', $review->student_name ?? '')); ?>" class="w-full mt-1 rounded border-gray-300" required>
        <?php $__errorArgs = ['student_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-xs text-red-600 mt-1"><?php echo e($message); ?></p> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
    </div>

    <div>
        <label class="text-sm font-medium">Review title</label>
        <input name="title" value="<?php echo e(old('title', $review->title ?? '')); ?>" class="w-full mt-1 rounded border-gray-300" required>
        <?php $__errorArgs = ['title'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <p class="text-xs text-red-600 mt-1"><?php echo e($message); ?></p> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
    </div>

    <div class="md:col-span-2">
        <label class="text-sm font-medium">Video URL (YouTube/Facebook/etc.)</label>
        <input type="url" name="video_url" value="<?php echo e(old('video_url', $review->video_url ?? '')); ?>" class="w-full mt-1 rounded border-gray-300" placeholder="https://...">
        <?php $__errorArgs = ['video_url'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <p class="text-xs text-red-600 mt-1"><?php echo e($message); ?></p> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
    </div>

    <div class="md:col-span-2">
        <label class="text-sm font-medium">Review text (optional)</label>
        <textarea name="review_text" rows="4" class="w-full mt-1 rounded border-gray-300"><?php echo e(old('review_text', $review->review_text ?? '')); ?></textarea>
        <?php $__errorArgs = ['review_text'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <p class="text-xs text-red-600 mt-1"><?php echo e($message); ?></p> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
    </div>

    <div>
        <label class="text-sm font-medium">Thumbnail image</label>
        <input type="file" name="thumbnail" accept="image/*" class="w-full mt-1 rounded border-gray-300">
        <?php $__errorArgs = ['thumbnail'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <p class="text-xs text-red-600 mt-1"><?php echo e($message); ?></p> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
        <?php if(!empty($review?->thumbnail_path)): ?>
            <img src="<?php echo e(asset('storage/' . $review->thumbnail_path)); ?>" class="mt-2 h-24 rounded object-cover" alt="Current thumbnail">
        <?php endif; ?>
    </div>

    <div>
        <label class="text-sm font-medium">Sort order</label>
        <input type="number" min="0" name="sort_order" value="<?php echo e(old('sort_order', $review->sort_order ?? 0)); ?>" class="w-full mt-1 rounded border-gray-300">
        <?php $__errorArgs = ['sort_order'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <p class="text-xs text-red-600 mt-1"><?php echo e($message); ?></p> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>

        <label class="inline-flex items-center gap-2 mt-4 text-sm">
            <input type="checkbox" name="is_active" value="1" <?php echo e(old('is_active', $review->is_active ?? true) ? 'checked' : ''); ?>>
            Active
        </label>
    </div>
</div>
<?php /**PATH /home/gpsmigration/public_html/gpsmigration.com/resources/views/admin/student-reviews/_form.blade.php ENDPATH**/ ?>