|
|
|
|
@ -33,6 +33,7 @@ class PublicCourseResource extends JsonResource
|
|
|
|
|
'status' => (int) $this->status,
|
|
|
|
|
'course_status' => (int) $this->course_status,
|
|
|
|
|
'sign_status' => (int) $this->sign_status,
|
|
|
|
|
'sign_date_status' => $this->sign_date_status,
|
|
|
|
|
'my_user' => isset($this->my_user) ? (int) $this->my_user : 0,
|
|
|
|
|
'type_detail' => $this->whenLoaded('typeDetail', function () {
|
|
|
|
|
if (!$this->typeDetail) {
|
|
|
|
|
|