Commit ea844fa1 authored by Mahmoud Aglan's avatar Mahmoud Aglan

Sort invoices list by payment date first, then creation date

Shows most recently paid invoices at the top so the user sees
the latest actual money collected, not just the latest generated.
Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 7742db39
...@@ -87,6 +87,7 @@ public function render() ...@@ -87,6 +87,7 @@ public function render()
}); });
}) })
->when($this->status, fn ($q) => $q->where('status', $this->status)) ->when($this->status, fn ($q) => $q->where('status', $this->status))
->orderByDesc('paid_at')
->orderByDesc('created_at'); ->orderByDesc('created_at');
$this->applyRoleScope($query); $this->applyRoleScope($query);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment