@php
    $cancelUrl = $cancel_url ?? $cancelUrl ?? null;
    $duplicateUrl = $duplicate_url ?? $duplicateUrl ?? null;
@endphp

@push('header-actions')
    <div class="form-buttons d-flex align-items-center ml-3">
        @include('components.form.buttons.button-cancel', [
            'class' => 'btn-sm mr-2',
            'url' => $cancelUrl,
        ])
        @if($duplicateUrl)
            @include('components.form.buttons.button-duplicate', [
                'class' => 'btn-sm mr-2',
                'duplicate_url' => $duplicateUrl,
            ])
        @endif
        @include('components.form.buttons.button-save', [
            'class' => 'btn-sm',
        ])
    </div>
@endpush

<div class="row pt-0 pb-3">
	<div class="col-12">
		<div class="text-right form-buttons">
			@include('components.form.buttons.button-cancel', ['url' => $cancelUrl])
            @if($duplicateUrl)
                @include('components.form.buttons.button-duplicate', ['duplicate_url' => $duplicateUrl])
            @endif
			@include('components.form.buttons.button-save')
		</div>
	</div>
</div>
