src/Models/Appointment.php
public function getStatusLabelAttribute()
    {
        $labels = [
            Self::STATUS_RESERVED  => 'reserved',
            Self::STATUS_CONFIRMED => 'confirmed',
            Self::STATUS_CANCELED  => 'canceled',
            Self::STATUS_SERVED    => 'served',
            ];

        return array_key_exists($this->status, $labels)
            ? $labels[$this->status]
            : '';
    }
public function getStatusLabelAttribute()
    {
        $labels = [
            Self::STATUS_RESERVED  => 'reserved',
            Self::STATUS_CONFIRMED => 'confirmed',
            Self::STATUS_CANCELED  => 'canceled',
            Self::STATUS_SERVED    => 'served',
            ];

        return array_key_exists($this->status, $labels)
            ? $labels[$this->status]
            : '';
    }
public function getStatusLabelAttribute ( ) { $ labels = [ Self :: STATUS_RESERVED => 'reserved' , Self :: STATUS_CONFIRMED => 'confirmed' , Self :: STATUS_CANCELED => 'canceled' , Self :: STATUS_SERVED => 'served' , ] ; return array_key_exists ( $ this -> status , $ labels ) ? $ labels [ $ this -> status ] : '' ; }
Get the human readable status name.

@return string
Get the human readable status name .