3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-04-05 15:28:30 +00:00
Files
snipe-it/resources/views/blade/button/edit.blade.php
2026-03-23 09:24:48 +00:00

20 lines
625 B
PHP

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