@extends("admin.layout.base") @extends("admin.layout.header") @section("title") Aktiviteter - Vis @endsection @section("path") Vis Aktiviteter / @endsection @section("content")
@if(auth()->user()->can('event.show')) CreateOpret Aktivitet @endif
@csrf
@if(auth()->user()->can('event.edit')) @endif @if(auth()->user()->can('event.delete')) @endif @foreach($events as $event) @if (date('Y-m-d H:i', strtotime('-1 day')) < date('Y-m-d H:i', strtotime($event->date))) @if(auth()->user()->can('event.edit')) @endif @if(auth()->user()->can('event.delete')) @endif @endif @endforeach
Aktivitet Navn Aktivitet Ansvarlig Aktivitet Dato ShowUpdateDelete
{{ $event->name }} {{ $event->accountable }} {{ \Illuminate\Support\Facades\Date::createFromTimeStamp(strtotime($event->date))->format('d/m/Y \k\l\. H:i') }} $event ]) }}">Show $event ]) }}">Update
$event ]) }}" class="w-100 nostyle"> @csrf @method("delete")
{{ $events->links() }} @endsection