v1.5.15 Added multiple events, not done

This commit is contained in:
2021-04-27 11:23:25 +02:00
parent 384070c40b
commit e5126ae5ae
13 changed files with 295 additions and 63 deletions
@@ -2,11 +2,11 @@
@extends("admin.layout.header")
@section("title")
Aktiviteter - Vis
Ugentligt aktiviteter - Vis
@endsection
@section("path")
<a href="" class="text-white">Vis ugenlige aktiviteter</a> /
<a href="" class="text-white">Vis ugentlig aktiviteter</a> /
@endsection
@section("content")
@@ -14,12 +14,7 @@
<table class="tbl mt-2 letterSpaceTable fixOverflow" id="table_id">
<thead>
<th>Uge</th>
<th>Aktivitets dag</th>
<th>Aktivitet</th>
<th>Tovholder</th>
<th>Tidsrum</th>
<th class="w-1em"><img class="w-100" src="{{ asset('/images/icons/eye.svg') }}" alt="Show"></th>
<!--<th class="w-1em"><img class="w-100" src="{{ asset('/images/icons/preview.svg') }}" alt="preview"></th>-->
<th class="w-1em"><img class="w-100" src="{{ asset('/images/icons/preview.svg') }}" alt="preview"></th>
@if(auth()->user()->can('event.edit'))
<th class="w-1em"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th>
@endif
@@ -32,12 +27,7 @@
<tr id="row_{{ $event->id }}">
<td>{{ $event->week}}</td>
<td>{{ ucfirst(\Carbon\Carbon::create(\Carbon\Carbon::getDays()[1])->dayName) }}</td>
<td>{{ $event->event_name}}</td>
<td>{{ $event->accountable}}</td>
<td>{{ $event->date}}</td>
<td><a href="{{ route("events.signups", [ "event" => $event ]) }}"><img class="w-100" src="{{ asset('/images/icons/eye-dark.svg') }}" alt="Show"></a></td>
<!--<td><a id="preview" onclick="modalNewsContent({{$event->id}})" style="cursor: pointer" ><img class="w-100" src="{{ asset('/images/icons/preview-dark.svg') }}" alt="preview"></a></td>-->
<td><a id="preview" onclick="modalEventContent({{$event->id}})" style="cursor: pointer"><img class="w-100" src="{{ asset('/images/icons/preview-dark.svg') }}" alt="preview"></a></td>
@if(auth()->user()->can('event.edit'))
<td><a href="{{ route("events.edit", [ "event" => $event ]) }}"><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
@endif