cancellation_policy)) { return json_decode($this->cancellation_policy, 1); } else { return null; } } public function paymentType() { return $this->hasOne("App\Models\PropertyBookingPaymentType", 'id', 'payment_type_id')->select(['id', 'name', 'language_key', 'code', 'status']); } }