Skip to content

Commit

Permalink
List image
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed Jul 15, 2023
1 parent 9e81916 commit 050a89f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions resources/views/public/_list-item.blade.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<li class="event-list-item">
<a class="event-list-item-link" href="{{ $event->uri() }}">
<div class="event-list-item-image-wrapper">
@empty(!$event->image)
<img class="event-list-item-image" src="{{ $event->present()->image(600, 400) }}" width="300" height="200" alt="{{ $event->image->alt_attribute }}" />
@endempty
<img class="event-list-item-image" src="{{ $event->present()->image(800, 600) }}" width="400" height="300" alt="{{ $event->image?->alt_attribute }}" />
</div>
<div class="event-list-item-info">
<div class="event-list-item-date">{{ $event->present()->dateFromTo }}</div>
Expand Down

0 comments on commit 050a89f

Please sign in to comment.