$appointment->getRouteKey(), 'key' => [ 'public' => $appointment->getPublicKey(), 'route' => $appointment->getRouteKey(), ], 'id' => $appointment->id, 'user_id' => $appointment->user_id, 'user_type' => $appointment->user_type, 'patient_id' => $appointment->patient_id, 'branch_id' => $appointment->branch_id, 'physician_id' => $appointment->physician_id, 'referral_source' => $appointment->referral_source, 'type' => $appointment->type, 'status' => $appointment->status, 'description' => $appointment->description, 'date' => $appointment->date, 'length' => $appointment->length, 'prior_auth' => $appointment->prior_auth, 'prior_auth_exp' => $appointment->prior_auth_exp, 'notes' => $appointment->notes, 'repeat' => $appointment->repeat, 'created_at' => $appointment->created_at, 'deleted_at' => $appointment->deleted_at, 'updated_at' => $appointment->updated_at, 'url' => [ 'public' => trans_url('appointment/'.$appointment->getPublicKey()), 'user' => guard_url('appointment/appointment/'.$appointment->getRouteKey()), ], 'status' => trans('app.'.$appointment->status), 'created_at' => format_date($appointment->created_at), 'updated_at' => format_date($appointment->updated_at), ]; } }