Skip to content

Commit

Permalink
add discount function and search
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiritin committed Sep 17, 2024
1 parent c9a5236 commit c0571c1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/Http/Controllers/POS/AttendeeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ public function show(string $attendeeId, Request $request): Response
//'badges' => $user->badges()->select('fursuit_id', 'printed_at', 'total', 'picked_up_at', 'badges.updated_at' )->get()
'badges' => $badges->load('wallet'),
'transactions' => $user->wallet->transactions()->where('amount', '<', 0)->orWhere('amount', '>', 0)->limit(50)->get(),
'fursuits' => $badges->map(function ($badge) {
return $badge->fursuit;
}),
'fursuits' => $user->fursuits()->with('species')->get(),
'checkouts' => Checkout::whereBelongsTo($user)->with('items')->get()->all(),
]);
}
Expand Down

0 comments on commit c0571c1

Please sign in to comment.