moved edit out of more buttons

This commit is contained in:
Denis Duliçi
2022-06-04 20:26:53 +03:00
parent 5ae0478484
commit 6fd4ab9995
2 changed files with 13 additions and 15 deletions

View File

@ -8,4 +8,16 @@
@endcan @endcan
@endif @endif
@stack('add_new_button_end') @stack('edit_button_start')
@if (! $transaction->hasTransferRelation)
@if (! $hideButtonEdit)
@can($permissionUpdate)
<x-link href="{{ route($routeButtonEdit, [$transaction->id, 'type' => $type]) }}">
{{ trans('general.edit') }}
</x-link>
@endcan
@endif
@endif
@stack('edit_button_end')

View File

@ -6,20 +6,6 @@
<span class="material-icons">more_horiz</span> <span class="material-icons">more_horiz</span>
</x-slot> </x-slot>
@stack('edit_button_start')
@if (! $transaction->hasTransferRelation)
@if (! $hideButtonEdit)
@can($permissionUpdate)
<x-dropdown.link href="{{ route($routeButtonEdit, [$transaction->id, 'type' => $type]) }}">
{{ trans('general.edit') }}
</x-dropdown.link>
@endcan
@endif
@endif
@stack('edit_button_end')
@stack('duplicate_button_start') @stack('duplicate_button_start')
@if (! $transaction->hasTransferRelation) @if (! $transaction->hasTransferRelation)