2020-06-26 06:56:18 +00:00
|
|
|
@extends("app.layout.base")
|
|
|
|
@section("title")
|
|
|
|
Aktiviteter
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section("content")
|
|
|
|
<main>
|
2020-08-06 13:31:38 +00:00
|
|
|
<h1 class="text-center sde-blue mb-0">{{ __('msg.aktiviteter') }}</h1>
|
2020-07-01 09:44:14 +00:00
|
|
|
@if(!$events->isEmpty())
|
|
|
|
@foreach($events as $event)
|
2020-07-28 08:13:44 +00:00
|
|
|
<form method="get" action="{{ route("userevents.create") }}">
|
2020-07-01 09:44:14 +00:00
|
|
|
<h3 class="sde-blue bold text-center mb-0">{{$event->name}}</h3>
|
2020-08-06 12:47:22 +00:00
|
|
|
<p class="text-center mt-0">Af: {{ $event->accountable }}</p>
|
2020-08-03 12:47:06 +00:00
|
|
|
<p class="text-center mt-0">{{ \Illuminate\Support\Facades\Date::createFromTimeStamp(strtotime($event->date))->format('d/m/Y \k\l\. H:i') }}</p>
|
2020-08-06 12:47:22 +00:00
|
|
|
{!! $event->description !!}
|
2020-07-28 08:13:44 +00:00
|
|
|
<input type="hidden" name="event_id" value="{{ $event->id }}">
|
|
|
|
{!! session()->get('error#' . $event->id) !!}
|
|
|
|
{!! session()->get('signup#' . $event->id) !!}
|
2020-08-07 08:51:10 +00:00
|
|
|
<button type="submit" class="btn text-center btn-sde-blue" id="tilmeld">{{__('msg.tilmeld')}}</button>
|
2020-07-28 06:44:25 +00:00
|
|
|
</form>
|
2020-07-01 09:44:14 +00:00
|
|
|
@endforeach
|
|
|
|
@else
|
2020-08-06 13:31:38 +00:00
|
|
|
<p class="text-center">{{__('msg.dereringenaktiviteter')}}!</p>
|
2020-07-01 09:44:14 +00:00
|
|
|
@endif
|
2020-08-06 13:31:38 +00:00
|
|
|
<a href="{{ route("userevents.index") }}" type="submit" class="mt-2 btn text-center btn-sde-blue" id="tilmeld">{{__('msg.setilmeldteaktiviteter')}}</a>
|
2020-06-26 06:56:18 +00:00
|
|
|
</main>
|
|
|
|
@endsection
|