@php
    $breadcrumbs = [
        ['label' => __('common.home'), 'url' => route('dashboard.index')],
        ['label' => __('common.hr')],
        ['label' => __('overtime.title'), 'url' => route('hr.overtime.index')],
        ['label' => __('overtime.rates.title'), 'url' => route('hr.overtime.rates.index')],
        ['label' => __('overtime.rates.edit_title')],
    ];
@endphp

<x-ui.layout.page
    :title="__('overtime.rates.edit_title')"
    page-icon="fe fe-edit-2"
    :breadcrumbs="$breadcrumbs"
>
    <x-slot:actions>
        <x-ui.buttons.secondary :href="route('hr.overtime.rates.index')" icon="fe fe-arrow-left">
            {{ __('overtime.rates.actions.back') }}
        </x-ui.buttons.secondary>
    </x-slot:actions>

    @include('pages.hr.overtime.rates._form', [
        'action' => route('hr.overtime.rates.update', $policy),
        'method' => 'PUT',
        'policy' => $policy,
        'submitLabel' => __('common.update'),
    ])
</x-ui.layout.page>
