@extends("app.layout.base") @section("title") Aktiviteter @endsection @section("content")

{{__('msg.tilmeldteaktiviteter')}}

{!! session()->get('eventunsubscribed') !!} @if(!$userevents->isEmpty()) @foreach($userevents as $userevent)
@csrf @method("delete")
@if($userevent->resource_id !== null)

{{ $userevent->name }}

{{__('msg.af')}}: {{ $userevent->accountable }}

{{ \Illuminate\Support\Facades\Date::createFromTimeStamp(strtotime($userevent->date))->format('d/m/Y \k\l\. H:i') }}

@else

{{ $userevent->name }}

{{__('msg.af')}}: {{ $userevent->accountable }}

{{ \Illuminate\Support\Facades\Date::createFromTimeStamp(strtotime($event->date))->format('d/m/Y \k\l\. H:i') }}

@endif
{!! \App\Helpers::closetags(substr($userevent->description, 0, 300) )!!}
@endforeach @else

{{__('msg.duharikketilmeldtdignogenaktiviteter')}}!

@endif {{__('msg.tilbage')}}
@endsection