diff --git a/resources/views/galleries/index.blade.php b/resources/views/galleries/index.blade.php index 48995997d..35a3be4ab 100644 --- a/resources/views/galleries/index.blade.php +++ b/resources/views/galleries/index.blade.php @@ -62,9 +62,7 @@ @if ($gallery->submissions_count > 4)
See More...
@endif - @elseif( - $gallery->children_count && - $gallery->through('children')->has('submissions')->where('is_visible', 1)->where('status', 'Accepted')->count()) + @elseif($gallery->children_count && $gallery->through('children')->has('submissions')->where('is_visible', 1)->where('status', 'Accepted')->count())
@foreach ($gallery->through('children')->has('submissions')->where('is_visible', 1)->where('status', 'Accepted')->orderBy('created_at', 'DESC')->get()->take(4) as $submission)