Documents ready

This commit is contained in:
Александр Бабкин
2022-07-04 14:53:54 +03:00
parent 62482b624d
commit 621b1fd677
12 changed files with 254 additions and 139 deletions

View File

@@ -0,0 +1,16 @@
{{-- <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