Files
mmc_info/resources/views/documents/actions.blade.php
Александр Бабкин 621b1fd677 Documents ready
2022-07-04 14:53:54 +03:00

17 lines
811 B
PHP

{{-- <a href="{{ route('documents.show',$document->id) }}">
<i class="fa fa-eye text-green-500 hover:text-green-700 px-2 text-lg"></i>
</a> --}}
<a href="{{ route('documents.edit', $document->id) }}">
<i class="fa fa-edit text-blue-500 hover:text-blue-700 px-2 text-lg"></i>
</a>
@if (!count($document->childs))
<form class="inline-block" action="{{ route('documents.destroy', $document->id) }}" method="POST"
onsubmit="return confirm('{{ __('Are you sure remove document ') . $document->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