|
@@ -67,7 +67,11 @@ class AppointmentApplication extends Model
|
|
|
//appointment_date
|
|
|
public function getAppointmentDateAttr($value, $data)
|
|
|
{
|
|
|
- return $this->appointmentTicket->appointment_daytime;
|
|
|
+ if (empty($this->appointmentTicket)) {
|
|
|
+ return '';
|
|
|
+ } else {
|
|
|
+ return $this->appointmentTicket->appointment_daytime;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//childs_text
|