diff --git a/app/Actions/Tabulation/EnterScore.php b/app/Actions/Tabulation/EnterScore.php index a3fab91..4354ac3 100644 --- a/app/Actions/Tabulation/EnterScore.php +++ b/app/Actions/Tabulation/EnterScore.php @@ -15,7 +15,6 @@ use Illuminate\Support\Facades\DB; class EnterScore { - // TODO implement this action every place that can save a score /** * @param User $user A user acting as the judge for this sheet * @param Entry $entry An entry to which this score should be assigned diff --git a/app/Services/DoublerService.php b/app/Services/DoublerService.php index f7a114c..24efd99 100644 --- a/app/Services/DoublerService.php +++ b/app/Services/DoublerService.php @@ -39,7 +39,6 @@ class DoublerService */ protected function findDoublersForEvent(Event $event, string $mode = 'seating'): array { - // TODO add scoped entry queries to the event model $this->validateEvent($event); $entries = $event->entries()->with('audition')->with('student')->get(); $entries = match ($mode) { diff --git a/database/seeders/AuditionSeeder.php b/database/seeders/AuditionSeeder.php index af87b75..d6e1a59 100644 --- a/database/seeders/AuditionSeeder.php +++ b/database/seeders/AuditionSeeder.php @@ -3,7 +3,6 @@ namespace Database\Seeders; use App\Models\Event; -use Illuminate\Database\Console\Seeds\WithoutModelEvents; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; @@ -13,9 +12,9 @@ class AuditionSeeder extends Seeder * Run the database seeds. */ public function run(): void - { //TODO: Seed scoring guides for the auditions - Probably need percussion and wind + { $event = Event::factory()->create([ - 'name' => 'Concert Band Auditions' + 'name' => 'Concert Band Auditions', ]); $instruments = [ @@ -34,7 +33,7 @@ class AuditionSeeder extends Seeder 'Euphonium', 'Tuba', 'String Bass', - 'Percussion' + 'Percussion', ]; $levels = ['HS', 'JH', '7th']; $n = 1; @@ -52,13 +51,13 @@ class AuditionSeeder extends Seeder } foreach ($instruments as $instrument) { DB::table('auditions')->insert([ - 'event_id' => $event->id, - 'name' => $level . ' ' . $instrument, - 'score_order' => $n, - 'entry_deadline' => '2040-12-31', - 'entry_fee' => '1000', + 'event_id' => $event->id, + 'name' => $level.' '.$instrument, + 'score_order' => $n, + 'entry_deadline' => '2040-12-31', + 'entry_fee' => '1000', 'minimum_grade' => $minGrade, - 'maximum_grade' => $maxGrade + 'maximum_grade' => $maxGrade, ]); $n++; } diff --git a/resources/views/admin/auditions/edit.blade.php b/resources/views/admin/auditions/edit.blade.php index dc2be46..d4b63f2 100644 --- a/resources/views/admin/auditions/edit.blade.php +++ b/resources/views/admin/auditions/edit.blade.php @@ -10,7 +10,6 @@ @endif - {{-- TODO implement a way to update multiple auditions as once --}} diff --git a/resources/views/admin/auditions/index.blade.php b/resources/views/admin/auditions/index.blade.php index d2f8a18..daa4dfd 100644 --- a/resources/views/admin/auditions/index.blade.php +++ b/resources/views/admin/auditions/index.blade.php @@ -94,4 +94,3 @@ -{{--TODO add options to filter the page--}} diff --git a/resources/views/admin/entries/index.blade.php b/resources/views/admin/entries/index.blade.php index 173899f..683005c 100644 --- a/resources/views/admin/entries/index.blade.php +++ b/resources/views/admin/entries/index.blade.php @@ -104,4 +104,3 @@ {{ $entries->links('vendor.pagination.simple-audition') }} -{{--TODO add options to filter the page--}} diff --git a/resources/views/admin/entries/prepare_draw.blade.php b/resources/views/admin/entries/prepare_draw.blade.php index 854be7c..d747937 100644 --- a/resources/views/admin/entries/prepare_draw.blade.php +++ b/resources/views/admin/entries/prepare_draw.blade.php @@ -28,4 +28,3 @@ -{{--TODO when an entry is made anywhere in the system, there needs to be a check if a draw needs to be run--}} diff --git a/resources/views/admin/students/index.blade.php b/resources/views/admin/students/index.blade.php index a56a5f3..37ecc07 100644 --- a/resources/views/admin/students/index.blade.php +++ b/resources/views/admin/students/index.blade.php @@ -34,4 +34,3 @@ {{ $students->links('vendor.pagination.simple-audition') }} -{{--TODO add options to filter the page--}}