@inject('layoutHelper', 'JeroenNoten\LaravelAdminLte\Helpers\LayoutHelper') @if($layoutHelper->isLayoutTopnavEnabled()) @php( $def_container_class = 'container' ) @else @php( $def_container_class = 'container-fluid' ) @endif {{-- Default Content Wrapper --}}
{{-- Content Header --}} @hasSection('content_header')
@if(\App\Models\Notification::all()->count() > 0) @foreach(\App\Models\Notification::all() as $notification) @if($notification->active) @switch($notification->type) @case(0)
Alert!
{{$notification->text}}
@break @case(1)
Alert!
{{$notification->text}}
@break @case(2)
Alert!
{{$notification->text}}
@break @endswitch @endif @endforeach @endif @if(auth()->user()->hasRole('athlete') && auth()->user()->medicalExaminations()->whereRaw('DATEDIFF(date, NOW()) < 30')->count() > 0)
Alert!
One of your medical examination is going to expire in less than 60 days.
@endif
@yield('content_header')
@endif {{-- Main Content --}}
@yield('content')