{{-- <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
