'datetime', ]; public function category() { return $this->belongsTo(Category::class); } public function getPaymentMethodLabelAttribute() { return [ 'cash' => 'Tunai', 'transfer' => 'Transfer Bank', ][$this->payment_method] ?? ucfirst($this->payment_method); } public function getPaymentStatusLabelAttribute() { return [ 'pending' => 'Pending', 'paid' => 'Lunas', 'cancelled' => 'Dibatalkan', ][$this->payment_status] ?? ucfirst($this->payment_status); } }