2020-06-26 06:56:18 +00:00
|
|
|
@extends("app.layout.base")
|
|
|
|
@section("title")
|
|
|
|
Aktiviteter
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section("content")
|
2020-08-10 11:26:48 +00:00
|
|
|
<style>
|
|
|
|
div.card {
|
|
|
|
margin-top: 1rem;
|
|
|
|
margin-bottom: 30px;
|
|
|
|
width: auto;
|
|
|
|
heigt: auto;
|
|
|
|
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
|
|
|
}
|
|
|
|
|
|
|
|
div.header {
|
|
|
|
background-color: #00788a;
|
|
|
|
color: white;
|
|
|
|
padding: 8px;
|
|
|
|
font-size: 10px;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
div.container {
|
|
|
|
padding: 8px;
|
|
|
|
text-align: justify;
|
|
|
|
line-height: 1.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
ol {
|
|
|
|
padding-right: 8px;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
2020-06-26 06:56:18 +00:00
|
|
|
<main>
|
2020-08-11 11:16:54 +00:00
|
|
|
<h1 class="text-center sde-blue mb-0" style="margin-bottom: 2rem">{{ __('msg.aktiviteter') }}</h1>
|
2020-07-01 09:44:14 +00:00
|
|
|
@if(!$events->isEmpty())
|
|
|
|
@foreach($events as $event)
|
2020-08-11 07:13:48 +00:00
|
|
|
<form method="get" action="{{ route("userevents.create") }}" id="form{{$event->id}}">
|
2020-08-10 11:26:48 +00:00
|
|
|
<div class="card">
|
|
|
|
<div class="header">
|
2020-08-11 07:13:48 +00:00
|
|
|
<h3>{{ $event->name }}</h3>
|
2020-08-10 11:26:48 +00:00
|
|
|
<p class="text-center mt-0">Af: {{ $event->accountable }}</p>
|
|
|
|
<p class="text-center mt-0">{{ \Illuminate\Support\Facades\Date::createFromTimeStamp(strtotime($event->date))->format('d/m/Y \k\l\. H:i') }}</p>
|
|
|
|
</div>
|
|
|
|
<div class="container">
|
2020-08-11 13:09:11 +00:00
|
|
|
{!! \App\Helpers::closetags(substr($event->description, 0, 300) )!!}
|
2020-08-10 11:26:48 +00:00
|
|
|
<input type="hidden" name="event_id" value="{{ $event->id }}">
|
|
|
|
{!! session()->get('error#' . $event->id) !!}
|
|
|
|
{!! session()->get('signup#' . $event->id) !!}
|
2020-08-11 07:13:48 +00:00
|
|
|
<div class="row">
|
|
|
|
<a style="width: 50%; margin: 0; padding: 0; text-align: start; font-weight: 700;" class="sde-blue" href="javascript:;" onclick="document.getElementById('form{{$event->id}}').submit();" >Tilmeld</a>
|
|
|
|
<a style="width: 50%; margin: 0; padding: 0; text-align: end; font-weight: 700;" class="sde-blue" href="{{route("events.show", ["event" => $event->id ])}}">Læs mere</a>
|
|
|
|
</div>
|
2020-08-10 11:26:48 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-07-28 06:44:25 +00:00
|
|
|
</form>
|
2020-07-01 09:44:14 +00:00
|
|
|
@endforeach
|
|
|
|
@else
|
2020-08-11 08:03:27 +00:00
|
|
|
<p class="text-center" style="margin-bottom: auto">{{__('msg.dereringenaktiviteter')}}!</p>
|
2020-07-01 09:44:14 +00:00
|
|
|
@endif
|
2020-08-11 08:03:27 +00:00
|
|
|
<a href="{{ route("userevents.index") }}" style="margin-top: auto" class="mt-2 btn text-center btn-sde-blue" id="tilmeld">{{__('msg.setilmeldteaktiviteter')}}</a>
|
2020-06-26 06:56:18 +00:00
|
|
|
</main>
|
|
|
|
@endsection
|