fixed module image and tabs

This commit is contained in:
denisdulici
2017-11-03 09:42:46 +03:00
parent c7f7d2fdfc
commit b6023b2b87
3 changed files with 31 additions and 10 deletions

View File

@ -8,7 +8,12 @@
<div class="box-body text-center">
<a href="{{ url('apps/' . $module->slug) }}">
<img src="{{ $module->files[0]->path_string }}" alt="{{ $module->name }}" class="item-image">
@foreach ($module->files as $file)
@if (($file->media_type != 'image') || ($file->pivot->zone != 'thumbnail'))
@php continue; @endphp
@endif
<img src="{{ $file->path_string }}" alt="{{ $module->name }}" class="item-image">
@endforeach
</a>
</div>
<!-- /.box-body -->