{{-- Actifisys (dnyActifisys) developed by Daniel Brendel (C) 2019 - 2023 by Daniel Brendel Version: 1.0 Contact: dbrendel1988gmailcom GitHub: https://github.com/danielbrendel/ Released under the MIT license --}} @extends('layouts.layout_home') @section('title') {{ $activity->title }} @endsection @section('content')

{{ $activity->user->name }} {!! (($activity->user->verified) ? ' ' : '') !!}

avatar

{{ (strlen($activity->user->bio) > 0) ? $activity->user->bio : __('app.no_information_given') }}

  {{ (($activity->date_of_activity_from_display == $activity->date_of_activity_till_display) ? $activity->date_of_activity_from_display . ' ' . $activity->startTime : $activity->date_of_activity_from_display . ' - ' . $activity->date_of_activity_till_display . ' ' . $activity->startTime) }}
   {{ $activity->location }}
 {{ (($activity->limit === 0) ? __('app.no_limit') : __('app.limit_count', ['count' => $activity->limit])) }}
 @if ($activity->category === 0) {{ __('app.category_zero') }} @else {{ $activity->categoryData->name }} @endif
@if ($activity->only_gender !== 0)
 {{ __('app.gender_restricted') }} ( @if ($activity->only_gender === 1) {{ __('app.gender_male') }} @elseif ($activity->only_gender === 2) {{ __('app.gender_female') }} @elseif ($activity->only_gender === 3) {{ __('app.gender_diverse') }} @endif )
@endif @if ($activity->only_verified)
 {{ __('app.only_verified') }}
@endif
@if ($activity->canceled)
{{ __('app.activity_canceled_title') }}
@endif @if ((new DateTime('now')) > (new DateTime($activity->date_of_activity_till))->modify('+' . env('APP_ACTIVITYRUNTIME', 60) . ' minutes'))
{{ __('app.activity_expired') }}
@elseif ((new DateTime('now')) > (new DateTime($activity->date_of_activity_from)))
{{ __('app.activity_running') }}
@endif @if (($activity->limit !== 0) && (count($activity->actualParticipants) >= $activity->limit))
{{ __('app.participant_limit_reached_short') }}
@endif

{{ __('app.actual_participants', ['count' => count($activity->actualParticipants)]) }}

@if (count($activity->actualParticipants) > 0) @foreach ($activity->actualParticipants as $user)
{{ $user->user->name }}
@endforeach @else {{ __('app.no_participants') }} @endif

{{ __('app.potential_participants', ['count' => count($activity->potentialParticipants)]) }}

@if (count($activity->potentialParticipants) > 0) @foreach ($activity->potentialParticipants as $user)
{{ $user->user->name }}
@endforeach @else {{ __('app.no_one_interested') }} @endif
@if ($activity->selfParticipated)

{{ __('app.images') }}

@foreach ($activity->images as $image) @endforeach
@endif
{!! \Purifier::clean(\App\AppModel::translateLinks($activity->description)) !!}
@foreach (explode(' ', $activity->tags) as $tag) @if ($tag !== '') @endif @endforeach
@if ((new DateTime('now')) < (new DateTime(date('Y-m-d H:i:s', strtotime($activity->date_of_activity_till))))) @auth @if (!$activity->selfParticipated)
@else
@endif @elseguest
@endauth @auth @if (!$activity->selfParticipated) @if (!$activity->selfInterested)
@else
@endif @endif @elseguest
@endauth @endif

@csrf
@auth @elseguest @endauth
@endsection @section('javascript') @endsection