2020-06-26 06:56:18 +00:00
|
|
|
@extends("app.layout.base")
|
|
|
|
@section("title")
|
|
|
|
Aktiviteter
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section("content")
|
|
|
|
<main>
|
|
|
|
<h1 class="text-center sde-blue mb-0">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>
|
|
|
|
<p class="text-center mt-0">{{$event->date}}</p>
|
|
|
|
<p class="text-center">{{$event->description}}</p>
|
2020-07-28 08:13:44 +00:00
|
|
|
<input type="hidden" name="user_id" value="{{ Auth::user()->id }}">
|
|
|
|
<input type="hidden" name="event_id" value="{{ $event->id }}">
|
|
|
|
{!! session()->get('error#' . $event->id) !!}
|
|
|
|
{!! session()->get('signup#' . $event->id) !!}
|
2020-07-28 06:44:25 +00:00
|
|
|
<button type="submit" class="btn text-center btn-sde-blue" id="tilmeld">Tilmeld</button>
|
|
|
|
</form>
|
2020-07-01 09:44:14 +00:00
|
|
|
@endforeach
|
|
|
|
@else
|
|
|
|
<p class="text-center">Der er ingen aktiviteter!</p>
|
|
|
|
@endif
|
2020-06-26 06:56:18 +00:00
|
|
|
</main>
|
|
|
|
@endsection
|