extend('layout/management_layout') ?> section('content') ?>

Book

$v !== '')); } } // Keep only values 1..13 $selectedClasses = array_values(array_intersect(range(1,13), $selectedClasses)); ?>
0) { foreach ($categories as $c) { if ((int)($c['id'] ?? 0) === $selectedCategoryId) { $selectedCat = $c; break; } } } $editGmin = old('grade_min', $selectedCat['grade_min'] ?? ''); $editGmax = old('grade_max', $selectedCat['grade_max'] ?? ''); ?>
Grade range is saved on the selected category (shared by all books in that category).
>
Choose all class numbers that use this book.
endSection() ?>