@extends('admin.layout') @section('title', 'Profielattributen') @section('content') @php $barMax = fn($collection, string $field) => max(1, $collection->max($field)); @endphp
{{ $item['label'] }}
{{ number_format($totals[$item['key']]) }}
{{ __('Top diagnoses') }}
@php $m = $barMax($diagnoses, 'total'); @endphp{{ __('Top strengths') }}
@php $m = $barMax($strengths, 'total'); @endphp{{ __('Top challenges') }}
@php $m = $barMax($challenges, 'total'); @endphp{{ __('Top interests') }}
@php $m = $barMax($topInterests, 'total'); @endphp{{ __('Connection purposes') }}
@php $m = $barMax($purposes, 'total'); @endphp{{ __('Looking for') }}
@php $m = $barMax($lookingFor, 'total'); @endphp