56 lines
2.6 KiB
PHP
56 lines
2.6 KiB
PHP
|
@extends("admin.layout.base")
|
||
|
@extends("admin.layout.header")
|
||
|
|
||
|
@section("title")
|
||
|
Aktiviteter - Vis
|
||
|
@endsection
|
||
|
|
||
|
@section("path")
|
||
|
<a href="" class="text-white">Vis ugenlige aktiviteter</a> /
|
||
|
@endsection
|
||
|
|
||
|
@section("content")
|
||
|
<p hidden>{{ \Carbon\Carbon::setLocale('da_DK') }}</p>
|
||
|
<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>-->
|
||
|
@if(auth()->user()->can('event.edit'))
|
||
|
<th class="w-1em"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th>
|
||
|
@endif
|
||
|
@if(auth()->user()->can('event.delete'))
|
||
|
<th class="w-1em"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
|
||
|
@endif
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
@foreach($multiEvents as $event)
|
||
|
|
||
|
<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>-->
|
||
|
@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
|
||
|
@if(auth()->user()->can('event.delete'))
|
||
|
<td>
|
||
|
@csrf
|
||
|
<a class="w-100 nostyle" onclick="delete_event({{ $event->id }})"><img class="w-100 cursor-pointer" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></a>
|
||
|
</td>
|
||
|
@endif
|
||
|
</tr>
|
||
|
|
||
|
@endforeach
|
||
|
</tbody>
|
||
|
</table>
|
||
|
@endsection
|