🤲 {{ trans('people.activities_profile_year_summary_activity_types', ['year' => $year]) }}
@foreach($uniqueActivityTypes as $activityType)
-
{{ $activityType['occurences'] }}
{{ $activityType['object']->name }}
@endforeach
{{ trans('people.activities_profile_year_summary', ['year' => $year]) }}
{{-- Bar chart --}}
@foreach ($activitiesPerMonthForYear->sortBy('month') as $activityMonth)
-
@endforeach
{{-- Details about each month --}}
@foreach ($activitiesPerMonthForYear as $activityMonth)
@if ($activityMonth['occurences'] != 0)
{{ \App\Helpers\DateHelper::getFullMonthAndDate(\Carbon\Carbon::create($year, $activityMonth['month'])) }} {{ trans_choice('people.activities_profile_number_occurences', $activityMonth['occurences'], ['value' => $activityMonth['occurences']]) }}
{{-- Activities list --}}
@foreach ($activityMonth['activities'] as $activity)
-
-
{{ \App\Helpers\DateHelper::getShortDate($activity->date_it_happened) }}
@if (!is_null($activity->type))
-
-
{{ $activity->type->name }}
@endif
{{ $activity->summary }}
{{ $activity->description }}
@endforeach
@endif
@endforeach