$topic->getRouteKey(), 'key' => [ 'public' => $topic->getPublicKey(), 'route' => $topic->getRouteKey(), ], 'prasent_id' => $topic->prasent_id, 'subject_id' => $topic->subject_id, 'title' => $topic->title, 'descreption' => $topic->descreption, 'images' => $topic->images, 'vidio' => $topic->vidio, 'link' => $topic->link, 'slug' => $topic->slug, 'user_id' => $topic->user_id, 'user_type' => $topic->user_type, 'deleted_at' => $topic->deleted_at, 'url' => [ 'public' => trans_url('course/'.$topic->getPublicKey()), 'user' => guard_url('course/topic/'.$topic->getRouteKey()), ], 'status' => trans('app.'.$topic->status), 'created_at' => format_date($topic->created_at), 'updated_at' => format_date($topic->updated_at), ]; } }