@foreach($files as $file) @php if (preg_match('/^s3\//', $file->path)) $file_url = Storage::disk('s3')->url(str_replace('s3/', '', $file->path).$file->realname); elseif (preg_match('/^http/', $file->path)) $file_url = $file->path.$file->realname; else $file_url = Storage::url($file->path.$file->realname); @endphp
  • @if (in_array($file->ext, ImageExt)) @endif {{-- @if (in_array($file->ext, AudioExt))
    Notice: Undefined variable: file in /home/edmedu/www/hana-edu.co.kr/sf4l/resources/views/files.blade.php on line 22

    Notice: Trying to get property 'ext' of non-object in /home/edmedu/www/hana-edu.co.kr/sf4l/resources/views/files.blade.php on line 22

    Notice: Undefined variable: file in /home/edmedu/www/hana-edu.co.kr/sf4l/resources/views/files.blade.php on line 23

    Notice: Trying to get property 'ext' of non-object in /home/edmedu/www/hana-edu.co.kr/sf4l/resources/views/files.blade.php on line 23
    @endif --}}
    @if ($file->description)
    {{$file->description}}
    @endif
    {{$file->name}} {{getFileSize($file->size)}} {{ $file->download ? $file->download:'' }}
  • @endforeach