Skip to content

Commit

Permalink
update payment controller
Browse files Browse the repository at this point in the history
  • Loading branch information
adeiskandarzulkarnaen committed Aug 7, 2024
1 parent 19079be commit bd58b4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Http/Controllers/PaymentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ public function validate(Request $request): RedirectResponse | string
})
->get();

if (!empty($conflictingReservations)) {
//Log::info(json_encode($conflictingReservations, JSON_PRETTY_PRINT));
if (!$conflictingReservations->isEmpty()) {
$message = 'Waktu reservasi sudah ada yg pesan '.$conflictingReservations[0]["time"].', lakukan reservasi 30 menit sebelum/sesudahnya.';

return back()->withErrors(['time' => $message])->withInput();
Expand Down

0 comments on commit bd58b4f

Please sign in to comment.