Move checkin list to partial
This commit is contained in:
parent
91d1a18471
commit
8dc74febcf
2 changed files with 18 additions and 16 deletions
16
resources/views/partials/checkin-list.blade.php
Normal file
16
resources/views/partials/checkin-list.blade.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
@foreach($checkinsList as $checkin)
|
||||
<li>
|
||||
<details class="checkin" id="{{ $checkin->id }}" ontoggle="toggleCheckin(this.open, this.id)">
|
||||
<summary class="checkin__summary">
|
||||
<h2 class="checkin__title">{!! $checkin->title ?? "<i>Untitled</i>" !!}</h2>
|
||||
<p class="checkin__meta">{!! render_date_difference($checkin->date) !!}</p>
|
||||
</summary>
|
||||
@if($checkin->note)
|
||||
{!! $checkin->note !!}
|
||||
@endif
|
||||
@if($checkin->image_url)
|
||||
<img class="popup__image" loading="lazy" src="{{ $checkin->image_url }}">
|
||||
@endif
|
||||
</details>
|
||||
</li>
|
||||
@endforeach
|
Loading…
Add table
Add a link
Reference in a new issue