@php
    $entityLabel = __('organization.entities.'.$entity);
    $breadcrumbs = [
        ['label' => __('common.home'), 'url' => route('dashboard.index')],
        ['label' => __('common.hr')],
        ['label' => $entityLabel, 'url' => route('hr.'.$route.'.index')],
        ['label' => __('common.edit')],
    ];
@endphp

<x-ui.layout.page
    :title="__('common.edit').' — '.$record->name"
    :subtitle="$entityLabel"
    page-icon="fe fe-edit-2"
    :breadcrumbs="$breadcrumbs"
>
    @include('pages.hr.organization._form', [
        'action' => route('hr.'.$route.'.update', $record),
        'method' => 'PUT',
        'record' => $record,
    ])
</x-ui.layout.page>
