diff --git a/app/Http/Controllers/AuditionInformationPage.php b/app/Http/Controllers/AuditionInformationPage.php index cca0243..b2a8c82 100644 --- a/app/Http/Controllers/AuditionInformationPage.php +++ b/app/Http/Controllers/AuditionInformationPage.php @@ -2,12 +2,15 @@ namespace App\Http\Controllers; -use Illuminate\Http\Request; +use function compact; class AuditionInformationPage extends Controller { public function __invoke() { - return view('audition-information'); + $concertAuditionTextLines = preg_split('/\R/', siteData('concertAuditionAdditionalInformation')); + $beginnerAuditionTextLines = preg_split('/\R/', siteData('beginnerAuditionAdditionalInformation')); + + return view('audition-information', compact('concertAuditionTextLines', 'beginnerAuditionTextLines')); } } diff --git a/app/Services/SiteDataService.php b/app/Services/SiteDataService.php index ef61b4e..a104fae 100644 --- a/app/Services/SiteDataService.php +++ b/app/Services/SiteDataService.php @@ -11,9 +11,9 @@ use InvalidArgumentException; class SiteDataService { public function __construct( - protected array $defaults, - protected string $cacheKeyPrefix, - protected int $cacheExpiration + protected array $defaults = [], + protected string $cacheKeyPrefix = '', + protected int $cacheExpiration = 0 ) { $this->defaults = config('siteData.defaults', []); $this->cacheKeyPrefix = config('siteData.cache_key_prefix', 'site_data_'); diff --git a/config/siteData.php b/config/siteData.php index bbdbc61..fffa6c7 100644 --- a/config/siteData.php +++ b/config/siteData.php @@ -84,5 +84,20 @@ return [ 'value' => '[{"name":"No Ensembles Defined","chair":" ","clinician":" "}]', 'type' => 'json', ], + 'concertAuditionFee' => [ + 'key' => 'concertAuditionFee', + 'value' => 'NO FEE SET', + 'type' => 'string', + ], + 'concertAuditionAdditionalInformation' => [ + 'key' => 'concertAuditionAdditionalInformation', + 'value' => 'NO ADDITIONAL INFORMATION SET', + 'type' => 'string', + ], + 'beginnerAuditionAdditionalInformation' => [ + 'key' => 'beginnerAuditionAdditionalInformation', + 'value' => 'NO ADDITIONAL INFORMATION SET', + 'type' => 'string', + ] ], ]; diff --git a/database/seeders/MeobdaData2526.php b/database/seeders/MeobdaData2526.php index b714048..9889ef5 100644 --- a/database/seeders/MeobdaData2526.php +++ b/database/seeders/MeobdaData2526.php @@ -10,6 +10,7 @@ class MeobdaData2526 extends Seeder public function run(): void { $defaults = [ + ['key' => 'concertAuditionFee', 'value' => '$10.00', 'type' => 'string'], ['key' => 'concertClinicDates', 'value' => 'February 2-3, 2026', 'type' => 'string'], ['key' => 'concertClinicLocation', 'value' => 'Oologah High School', 'type' => 'string'], ['key' => 'beginnerClinicDates', 'value' => 'April 7, 2026', 'type' => 'string'], @@ -53,6 +54,17 @@ class MeobdaData2526 extends Seeder ]), 'type' => 'json', ], + [ + 'key' => 'concertAuditionAdditionalInformation', + 'value' => '9th Graders may audition for the Jr. High and/or HS Band. Those auditioning for both bands must pay a $10.00 audition fee for each instrument they audition on for each band. (A 9th grade trumpet player auditioning for the Jr. High and HS band would pay $20.00; a 9th grade sax player auditioning on alto and tenor for the Jr. High and HS band would pay $40.00). +9th Graders, auditioning for both Jr. High and HS, who score well enough to be in the HS band will be placed in the HS band.', + 'type' => 'string', + ], + [ + 'key' => 'beginnerAuditionAdditionalInformation', + 'value' => 'Students are selected by director recommendation. Directors may being up to 9 students for each band, but no more than one drummer or two alto saxes for either. Entry fee is $10.00 and includes lunch.', + 'type' => 'string', + ] ]; foreach ($defaults as $item) { diff --git a/resources/views/audition-information.blade.php b/resources/views/audition-information.blade.php index 132441f..dc1c69c 100644 --- a/resources/views/audition-information.blade.php +++ b/resources/views/audition-information.blade.php @@ -2,22 +2,18 @@ HS / JH / 7th / Jazz Auditions
-

January 12, 2026

-

Wagoner High School

-

Entry fee is $10.00 per entry

-

9th Graders may audition for the Jr. High and/or HS Band. Those auditioning for both bands must pay a - $10.00 audition fee for each instrument they audition on for each band. (A 9th grade trumpet player - auditioning for the Jr. High and HS band would pay $20.00; a 9th grade sax player auditioning on - alto - and tenor for the Jr. High and HS band would pay $40.00).

-

9th Graders, auditioning for both Jr. High and HS, who score well enough to be in the HS band will be - placed - in the HS band.

+

{{ siteData('concertAuditionDate') }}

+

{{ siteData('concertAuditionLocation') }}

+

Entry fee is {{ siteData('concertAuditionFee') }} per entry

+ @foreach($concertAuditionTextLines as $line) +

{{ $line }}

+ @endforeach
First / Second Year Nominations -

Students are selected by director recommendation. Directors may being up to 9 students for each band, but - no more than one drummer or two alto saxes for either. Entry fee is $10.00 and includes lunch.

+ @foreach($beginnerAuditionTextLines as $line) +

{{ $line }}

+ @endforeach