@if (!$inModal)
<div class="flex items-center justify-between my-8">
    <div>
        {{ app('aura')::injectView('post_edit_title_before') }}
        <h1 class="text-2xl font-semibold">{{ __('Edit :resource', ['resource' => __($model->singularName())]) }}</h1>
        {{ app('aura')::injectView('post_edit_title_after') }}
    </div>

    <div class="flex items-center space-x-2">

        @include('aura::livewire.resource.actions')

        @can('view', $model)
            @if(Route::has('aura.' . $model->getSlug() . '.view'))
                <a href="{{ $model->viewUrl() }}" class="text-gray-500 hover:text-gray-700">
                    <x-aura::button.transparent>
                        {{-- <x-aura::icon.view class="w-5 h-5 mr-2"/> --}}
                        {{ __('View') }}
                    </x-aura::button.transparent>
                </a>
            @endif
        @endcan

        <div class="save-resource">
            <x-aura::button wire:click="save" wire:loading.attr="disabled">
                <div wire:loading.delay wire:target="save">
                    <x-aura::icon.loading/>
                </div>
                {{ __('Save') }}
            </x-aura::button>
        </div>
    </div>
</div>
@else
<x-aura::dialog.title>{{ __('Edit ' . $model->singularName()) }}</x-aura::dialog.title>
@endif
