{!! Theme::section('community.documents.menu',['category'=>$category,'page'=>$page]) !!}
@if($documents)
{{trans('organizationtopics.document-title')}}
{{trans('organizationtopics.document-size')}}
{{trans('organizationtopics.file-descriptions')}}
@foreach($documents as $document)
@if($document->is_folder==1)
@if(strlen($document->folder_name) >25) {{Str::limit($document->folder_name, 25)}} @else {{$document->folder_name}} @endif
@else
@if (in_array(strtolower($document->document_type), $imgExt)) @else @endif
@if(strlen($document->document_original_name) >25) {{Str::limit($document->document_original_name, 25)}} @else {{$document->document_original_name}} @endif
@endif
@if($document->document_size) {{formatSizeUnits($document->document_size)}} @endif
@if(strlen($document->document_description) >25) {{Str::limit($document->document_description, 25)}} @else {{$document->document_description}} @endif
{!! Theme::section('community.documents.document-actions',['document'=>$document,'category'=>$category]) !!} @if($document->document_description) @endif
{{nl2br($document->document_description)}}
@endforeach {!! $documents->appends(request()->except('page'))->render() !!}
@endif


{!! Theme::section('community.documents.move-file',['category'=>$category,'folders'=>$folders,'community'=>$community]) !!}