@if(count($photos)>0) @foreach($photos as $photo) @php $file = $photo->media; @endphp
@if($file->media_type == 'Image') @else @endif

File: {{$file->file_name}}

Size: {{BladeHelper::formatBytes($file->file_size)}}


@endforeach @endif