Setup PrelimJudgingController.php
This commit is contained in:
parent
a609c9d627
commit
2b39ea9a88
|
|
@ -0,0 +1,14 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers\Judging;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
|
use App\Models\PrelimDefinition;
|
||||||
|
|
||||||
|
class PrelimJudgingController extends Controller
|
||||||
|
{
|
||||||
|
public function prelimEntryList(PrelimDefinition $prelimAudition)
|
||||||
|
{
|
||||||
|
dd($prelimAudition);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
</a>
|
</a>
|
||||||
@endforeach
|
@endforeach
|
||||||
@foreach($room->prelimAuditions as $prelimAudition)
|
@foreach($room->prelimAuditions as $prelimAudition)
|
||||||
<a href="{{ route('judging.prelimEntryList', $prelimAudition->audition) }}">
|
<a href="{{ route('judging.prelimEntryList', $prelimAudition) }}">
|
||||||
<x-card.list.row class="!py-3 ml-3">{{ $prelimAudition->audition->name }} Prelims</x-card.list.row>
|
<x-card.list.row class="!py-3 ml-3">{{ $prelimAudition->audition->name }} Prelims</x-card.list.row>
|
||||||
</a>
|
</a>
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ use App\Http\Controllers\Judging\BonusScoreEntryController;
|
||||||
use App\Http\Controllers\Judging\BonusScoreEntryListController;
|
use App\Http\Controllers\Judging\BonusScoreEntryListController;
|
||||||
use App\Http\Controllers\Judging\BonusScoreRecordController;
|
use App\Http\Controllers\Judging\BonusScoreRecordController;
|
||||||
use App\Http\Controllers\Judging\JudgingController;
|
use App\Http\Controllers\Judging\JudgingController;
|
||||||
|
use App\Http\Controllers\Judging\PrelimJudgingController;
|
||||||
use App\Http\Middleware\CheckIfCanJudge;
|
use App\Http\Middleware\CheckIfCanJudge;
|
||||||
use Illuminate\Support\Facades\Route;
|
use Illuminate\Support\Facades\Route;
|
||||||
|
|
||||||
|
|
@ -14,9 +15,11 @@ Route::middleware(['auth', 'verified', CheckIfCanJudge::class])->prefix('judging
|
||||||
Route::get('/entry/{entry}', 'entryScoreSheet')->name('judging.entryScoreSheet');
|
Route::get('/entry/{entry}', 'entryScoreSheet')->name('judging.entryScoreSheet');
|
||||||
Route::post('/entry/{entry}', 'saveScoreSheet')->name('judging.saveScoreSheet');
|
Route::post('/entry/{entry}', 'saveScoreSheet')->name('judging.saveScoreSheet');
|
||||||
Route::patch('/entry/{entry}', 'updateScoreSheet')->name('judging.updateScoreSheet');
|
Route::patch('/entry/{entry}', 'updateScoreSheet')->name('judging.updateScoreSheet');
|
||||||
|
});
|
||||||
|
|
||||||
// Prelim Audition Related Routes
|
// Prelim Audition Related Routes
|
||||||
Route::get('/audition/{audition}/prelim', 'prelimEntryList')->name('judging.prelimEntryList');
|
Route::middleware(['auth', 'verified', CheckIfCanJudge::class])->prefix('judging/prelims')->controller(PrelimJudgingController::class)->group(function () {
|
||||||
|
Route::get('/{audition}', 'prelimEntryList')->name('judging.prelimEntryList');
|
||||||
});
|
});
|
||||||
|
|
||||||
// Bonus score judging routes
|
// Bonus score judging routes
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue