Skip to content

Commit

Permalink
Sort partners by date_start
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Geurts committed Jan 22, 2024
1 parent 77ec5fb commit 2a9f2b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/livewire/people/partners.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</div>
@if ($person->couples->count() > 0)
@foreach ($person->couples as $couple)
@foreach ($person->couples->sortBy('date_start') as $couple)
<div class="p-2 flex flex-wrap gap-2 justify-center items-start @if (!$loop->last) border-b @endif">
<div class="flex-grow min-w-max max-w-full flex-1">
@if ($couple->person2_id === $person->id)
Expand Down

0 comments on commit 2a9f2b2

Please sign in to comment.