fix(api): add missing PAYMENT_VERIFICATION constant and label to Booking model

This commit is contained in:
micko samawa 2026-06-29 07:59:02 +07:00
parent 1aaa15a38e
commit f85c7e1809
1 changed files with 2 additions and 0 deletions

View File

@ -100,6 +100,7 @@ public static function syncKontrakanStatus($kontrakanId)
const PAYMENT_UNPAID = 'unpaid';
const PAYMENT_PAID = 'paid';
const PAYMENT_VERIFICATION = 'verification';
const PAYMENT_REFUNDED = 'refunded';
// ========== RELASI ==========
@ -281,6 +282,7 @@ public function getPaymentStatusLabelAttribute(): string
{
return match ($this->payment_status) {
self::PAYMENT_UNPAID => 'Belum Bayar',
self::PAYMENT_VERIFICATION => 'Menunggu Verifikasi',
self::PAYMENT_PAID => 'Lunas',
self::PAYMENT_REFUNDED => 'Dikembalikan',
default => ucfirst($this->payment_status),