Skip to content

Commit

Permalink
refactor: fix blade formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
itinerare authored and github-actions[bot] committed Jan 13, 2025
1 parent 0abc704 commit fb2e7d5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions resources/views/galleries/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@
@if ($gallery->submissions_count > 4)
<div class="text-right"><a href="{{ url('gallery/' . $gallery->id) }}">See More...</a></div>
@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())
<div class="row">
@foreach ($gallery->through('children')->has('submissions')->where('is_visible', 1)->where('status', 'Accepted')->orderBy('created_at', 'DESC')->get()->take(4) as $submission)
<div class="col-md-3 text-center align-self-center">
Expand Down

0 comments on commit fb2e7d5

Please sign in to comment.