v1.5.20d added multiple events to nav bar

This commit is contained in:
2021-05-06 08:56:22 +02:00
parent d636beaba5
commit b6105d0e0b
4 changed files with 78 additions and 8 deletions
@@ -76,6 +76,12 @@
{{ __('msg.aktiviteter') }}
</a>
@endif
@if(auth()->user()->can('event.show'))
<a href="{{ route("multiple-events.index") }}">
<img src="{{URL::asset('/images/icons/calendar2.svg')}}" alt="multiple-events">
{{ __('msg.ugentligaktiviteter') }}
</a>
@endif
@if(auth()->user()->can('washing.machine.reservation.show'))
<a href="{{ route("washing-reservations.appindex") }}">
<img src="{{URL::asset('/images/icons/Vaske booking liste.svg')}}" alt="Reservationer">
@@ -9,15 +9,11 @@
margin-top: 1rem;
margin-bottom: 30px;
width: auto;
heigt: auto;
height: auto;
border-bottom: 2px solid black;
}
div.container {
padding: 8px;
text-align: justify;
}
.header > img {
border-radius: 10px 10px 0px 0px
border-radius: 10px 10px;
}
/*Alert box*/
.alert {
@@ -45,7 +41,7 @@
margin-top: 1rem;
margin-bottom: 30px;
width: auto;
heigt: auto;
height: auto;
}
</style>
@@ -75,7 +71,7 @@
@if(!$multiEvents->isEmpty())
@foreach($multiEvents as $multiEvent)
<div class="card">
<div class="container" class="mt-1">
<div class="container mt-1">
<h4 class="m-none">{{ ucfirst(\Carbon\Carbon::parse($multiEvent->date)->formatLocalized('%A')) }}</h4>
<h4 class="m-none">{{$multiEvent->name}}</h4>
<p class="mt-0">{{__('msg.af')}}: {{$multiEvent->accountable}}</p>
@@ -92,6 +88,8 @@
</div>
</div>
@endforeach
@else
<p class="text-center mb-auto">{{__('msg.dereringenaktiviteter')}}!</p>
@endif
<button onclick="document.location = document.referrer;" class="btn btn-sde-blue text-white mb-1 mt-auto">{{ __('msg.tilbage') }}</button>
</main>