@php $presets = ['#124a61', '#f59e0b', '#10b981', '#0ea5e9', '#a855f7', '#ec4899', '#14b8a6', '#f43f5e', '#64748b', '#eab308']; @endphp
@if ($canManage) {{ __('New Category') }} @endif
@forelse ($departments as $department)
{{-- Department header --}}
{{ $department->name }} {{ __('Department') }} @unless ($department->is_active) {{ __('Inactive') }} @endunless

{{ trans_choice(':count material|:count materials', (int) $department->materials_count, ['count' => $department->materials_count]) }} {{ __('directly in department') }}

@if ($canManage) @endif @if ($canDelete) @endif
{{-- Type children --}} @if ($department->children->isNotEmpty())
@foreach ($department->children as $type)
{{ $type->name }} · {{ trans_choice(':count material|:count materials', (int) $type->materials_count, ['count' => $type->materials_count]) }} @unless ($type->is_active) {{ __('Inactive') }} @endunless
@if ($canManage) @endif @if ($canDelete) @endif
@endforeach
@else

{{ __('No material types yet, add one to break this department down.') }}

@endif
@empty
@if ($canManage)
{{ __('Add recommended categories') }} {{ __('Create manually') }}
@endif
@endforelse
{{-- Create / Edit Modal --}} {{ $editingId ? __('Edit Category') : __('New Category') }}

{{ __('Leave as a department for a top-level group, or pick one to make this a material type within it.') }}

@foreach ($presets as $preset) @endforeach
{{ __('Cancel') }} {{ __('Save') }}