{{ __('Configuration') }}

{{ __('Types d’activités') }}

{{ __('Retour dashboard') }}
@if (session('status'))
{{ session('status') }}
@endif

{{ __('Liste') }}

{{ __('Types') }}

@forelse ($categoriesWithTypes as $category)

{{ data_get($category, 'name') }}

{{ data_get($category, 'slug') }} · {{ data_get($category, 'is_active') ? __('Actif') : __('Inactif') }}

{{ trans_choice('ui.common.types', data_get($category, 'activityTypes', collect())->count(), ['count' => data_get($category, 'activityTypes', collect())->count()]) }}
@forelse (data_get($category, 'activityTypes', collect()) as $type)

{{ data_get($type, 'name') }}

{{ __('ui.common.type_details', [ 'slug' => data_get($type, 'slug'), 'weight' => number_format((float) data_get($type, 'score_weight', 1), 2, ',', ' '), 'deepwork' => data_get($type, 'allows_deepwork') ? __('Deepwork autorisé') : __('Deepwork désactivé'), 'status' => data_get($type, 'is_active') ? __('Actif') : __('Inactif'), ]) }}

{{ __('Consulter') }} {{ __('Modifier') }}
@csrf @method('DELETE')
@empty
{{ __('Aucun type dans cette catégorie.') }}
@endforelse
@empty
{{ __('Aucune catégorie créée.') }}
@endforelse