Files
mmc_info/resources/views/auks/actions.blade.php
Александр Бабкин 240351d832 AUK ready
2022-07-04 16:04:58 +03:00

17 lines
766 B
PHP

{{-- <a href="{{ route('auks.show',$auk->id) }}">
<i class="fa fa-eye text-green-500 hover:text-green-700 px-2 text-lg"></i>
</a> --}}
<a href="{{ route('auks.edit', $auk->id) }}">
<i class="fa fa-edit text-blue-500 hover:text-blue-700 px-2 text-lg"></i>
</a>
@if (!count($auk->childs))
<form class="inline-block" action="{{ route('auks.destroy', $auk->id) }}" method="POST"
onsubmit="return confirm('{{ __('Are you sure remove AUK ') . $auk->name . '?' }}');">
<input type="hidden" name="_method" value="DELETE">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<button type="submit">
<i class="fa fa-trash text-red-500 hover:text-red-700 px-2 text-lg"></i>
</button>
</form>
@endif