meobda-website/resources/views/welcome.blade.php

79 lines
3.0 KiB
PHP

<x-layout.app>
<div class="grid sm:grid-cols-2 lg:grid-cols-4 gap-5">
<x-card class="h-full flex flex-col">
<x-slot:header class="jim">Audition Info</x-slot:header>
<x-slot:body class="grow">
<dl>
<dt>Audition Date</dt>
<dd>{{ $concertAuditionDate }}</dd>
<dt>Audition Location</dt>
<dd>{{ $concertAuditionLocation }}</dd>
</dl>
</x-slot:body>
</x-card>
<x-card class="h-full flex flex-col">
<x-slot:header>Entry Deadlines</x-slot:header>
<x-slot:body class="grow">
<p>Concert/Jazz: {{ $concertEntryDeadline }}</p>
<p class="mt-3">First/Second Year: {{ $beginnerEntryDeadline }}</p>
</x-slot:body>
</x-card>
<x-card class="h-full flex flex-col">
<x-slot:header>Clinic Info</x-slot:header>
<x-slot:body class="grow">
<dl>
<dt>Concert Band Clinic</dt>
<dd>
<p>{{ $concertClinicDates }}</p>
<p>{{ $concertClinicLocation }}</p>
</dd>
<dt class="mt-5">First/Second Year & Jazz Clinic</dt>
<dd>
<p>{{ $beginnerClinicDates }}</p>
<p>{{ $beginnerClinicLocation }}</p>
</dd>
</dl>
</x-slot:body>
</x-card>
<x-card class="h-full flex flex-col">
<x-slot:header>Officers</x-slot:header>
<x-slot:body class="grow">
<dl>
@foreach($officers as $officer)
<dt>{{ $officer['office'] }}</dt>
<dd>{{ $officer['name'] }}, {{ $officer['school'] }}</dd>
@endforeach
</dl>
</x-slot:body>
</x-card>
<div class="sm:col-span-2 lg:col-start-2 mt-5">
@foreach($newsStories as $story)
<x-card class="mb-5 ">
<x-slot:header>{{ $story->headline }}</x-slot:header>
<p class="text-xs italic">
Published: {{ $story->start_publication_date->format('m/d/Y') ?? $story->created_at->format('m/d/Y') }}</p>
@if($story->created_at->format('m/d/Y') != $story->updated_at->format('m/d/Y'))
<p class="mt-1 text-xs italic">Last Updated: {{ $story->updated_at->format('m/d/Y') }}</p>
@endif
<div class="mt-3">
{{ $story->body }}
</div>
</x-card>
@endforeach
@if($newsStories->hasPages())
<x-card>
<x-slot:header>See More Stories</x-slot:header>
{{ $newsStories->links() }}
</x-card>
@endif
</div>
</div>
</x-layout.app>