46 lines
2.0 KiB
PHP
46 lines
2.0 KiB
PHP
@extends("admin.layout.base")
|
|
@extends("admin.layout.header")
|
|
|
|
@section("title")
|
|
Ugentligt aktiviteter - Vis
|
|
@endsection
|
|
|
|
@section("path")
|
|
<a href="" class="text-white">Vis ugentlig 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 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><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
|
|
@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
|