Commit 2fadfa10 authored by Mahmoud Aglan's avatar Mahmoud Aglan

Fix Dashboard 500: Payment relationship is 'creator' not 'createdBy'

Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 8c98daf0
...@@ -118,7 +118,7 @@ public function render() ...@@ -118,7 +118,7 @@ public function render()
$recentPayments = Payment::where('status', 'confirmed') $recentPayments = Payment::where('status', 'confirmed')
->when($branchId, fn ($q) => $q->where('branch_id', $branchId)) ->when($branchId, fn ($q) => $q->where('branch_id', $branchId))
->with('createdBy') ->with('creator')
->orderByDesc('created_at') ->orderByDesc('created_at')
->limit(5) ->limit(5)
->get(); ->get();
......
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