$appointment->getRouteKey(), 'key' => [ 'public' => $appointment->getPublicKey(), 'route' => $appointment->getRouteKey(), ], 'id' => $appointment->id, 'clinic_id' => $appointment->clinic_id, 'department_id' => $appointment->department_id, 'doctor_id' => $appointment->doctor_id, 'patient_name' => $appointment->patient_name, 'email' => $appointment->email, 'phone' => $appointment->phone, 'address' => $appointment->address, 'appointment_time' => $appointment->appointment_time, 'status' => $appointment->status, 'slug' => $appointment->slug, 'created_at' => $appointment->created_at, 'updated_at' => $appointment->updated_at, 'deleted_at' => $appointment->deleted_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), ]; } }