Skip to content

Commit

Permalink
fix reservation controller
Browse files Browse the repository at this point in the history
  • Loading branch information
adeiskandarzulkarnaen committed Aug 7, 2024
1 parent bd58b4f commit 0673523
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Http/Controllers/Dashboard/AdminReservationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public function index(): Response
$reservations = Reservation::query()
->where('status', 'success')
->with('user:id,first_name,last_name,phone,img', 'product:id,name')
->orderBy('created_at', 'desc')
->get();

//Log::info(json_encode($reservations, JSON_PRETTY_PRINT));
Expand All @@ -27,6 +28,7 @@ public function failed(): Response
$reservations = Reservation::query()
->whereNotIn('status', ['success'])
->with('user:id,first_name,last_name,phone,img', 'product:id,name')
->orderBy('created_at', 'desc')
->get();

//Log::info(json_encode($reservations, JSON_PRETTY_PRINT));
Expand Down

0 comments on commit 0673523

Please sign in to comment.