dont allow editing transaction of transfer

This commit is contained in:
Denis Duliçi 2022-08-03 22:12:24 +03:00
parent 179106380c
commit fb104490ad

View File

@ -25,10 +25,12 @@
x-ref="container1" x-ref="container1"
x-bind:class="create == 1 ? 'h-auto ' : 'scale-y-0 h-0'" x-bind:class="create == 1 ? 'h-auto ' : 'scale-y-0 h-0'"
> >
<div class="flex my-3 space-x-2 rtl:space-x-reverse"> @if ($transaction->isNotTransferTransaction())
<a href="{{ route($routeButtonEdit, [$transaction->id, 'type' => $transaction->type]) }}" class="px-3 py-1.5 mb-3 sm:mb-0 bg-gray-100 hover:bg-gray-200 rounded-xl text-purple text-xs font-bold leading-6"> <div class="flex my-3 space-x-2 rtl:space-x-reverse">
{{ trans('general.edit') }} <a href="{{ route($routeButtonEdit, [$transaction->id, 'type' => $transaction->type]) }}" class="px-3 py-1.5 mb-3 sm:mb-0 bg-gray-100 hover:bg-gray-200 rounded-xl text-purple text-xs font-bold leading-6">
</a> {{ trans('general.edit') }}
</div> </a>
</div>
@endif
</div> </div>
</div> </div>