{{-- Copyright (c) 2015 - 2017 Dane Everitt --}} {{-- Permission is hereby granted, free of charge, to any person obtaining a copy --}} {{-- of this software and associated documentation files (the "Software"), to deal --}} {{-- in the Software without restriction, including without limitation the rights --}} {{-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell --}} {{-- copies of the Software, and to permit persons to whom the Software is --}} {{-- furnished to do so, subject to the following conditions: --}} {{-- The above copyright notice and this permission notice shall be included in all --}} {{-- copies or substantial portions of the Software. --}} {{-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR --}} {{-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, --}} {{-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE --}} {{-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER --}} {{-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, --}} {{-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE --}} {{-- SOFTWARE. --}}
/home/container{{ $directory['header'] }}
@if (isset($directory['first']) && $directory['first'] === true) @endif @if (isset($directory['show']) && $directory['show'] === true) @endif @foreach ($folders as $folder) @endforeach @foreach ($files as $file) @endforeach
@lang('server.files.file_name')
← {{ $directory['link_show'] }}
{{ $folder['entry'] }}
{{-- oh boy --}} @if(in_array($file['mime'], [ 'application/x-7z-compressed', 'application/zip', 'application/x-compressed-zip', 'application/x-tar', 'application/x-gzip', 'application/x-bzip', 'application/x-bzip2', 'application/java-archive' ])) @elseif(in_array($file['mime'], [ 'application/json', 'application/javascript', 'application/xml', 'application/xhtml+xml', 'text/xml', 'text/css', 'text/html', 'text/x-perl', 'text/x-shellscript' ])) @elseif(starts_with($file['mime'], 'image')) @elseif(starts_with($file['mime'], 'video')) @elseif(starts_with($file['mime'], 'video')) @elseif(starts_with($file['mime'], 'application/vnd.ms-powerpoint')) @elseif(in_array($file['mime'], [ 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', 'application/msword' ]) || starts_with($file['mime'], 'application/vnd.ms-word')) @elseif(in_array($file['mime'], [ 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/vnd.openxmlformats-officedocument.spreadsheetml.template', ]) || starts_with($file['mime'], 'application/vnd.ms-excel')) @elseif($file['mime'] === 'application/pdf') @else @endif @if(in_array($file['mime'], $editableMime)) @can('edit-files', $server) {{ $file['entry'] }} @else {{ $file['entry'] }} @endcan @else {{ $file['entry'] }} @endif