Files
2026-03-23 09:24:48 +00:00

22 lines
680 B
PHP

@props([
'item' => null,
'route' => null,
'wide' => false,
])
@can('update', $item)
@if ($item->deleted_at!='')
<!-- start restore button component -->
<form method="POST" action="{{ $route }}" class="inline">
@csrf
<button class="btn btn-sm btn-warning hidden-print{{ $wide == 'true' ? ' btn-block btn-social' : '' }}" data-tooltip="true" data-placement="top" data-title="{{ trans('general.restore') }}">
<x-icon type="restore" class="fa-fw" />
@if ($wide=='true')
{{ trans('general.restore') }}
@endif
</button>
</form>
@endif
<!-- end restore button component -->
@endcan