22 lines
680 B
PHP
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
|