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