$employee->getRouteKey(), 'key' => [ 'public' => $employee->getPublicKey(), 'route' => $employee->getRouteKey(), ], 'name' => $employee->name, 'description' => $employee->description, 'image' => $employee->image, 'slug' => $employee->slug, 'user_id' => $employee->user_id, 'user_type' => $employee->user_type, 'deleted_at' => $employee->deleted_at, 'url' => [ 'public' => trans_url('employee/'.$employee->getPublicKey()), 'user' => guard_url('employee/employee/'.$employee->getRouteKey()), ], 'status' => trans('app.'.$employee->status), 'created_at' => format_date($employee->created_at), 'updated_at' => format_date($employee->updated_at), ]; } }