$lead->getRouteKey(), 'key' => [ 'public' => $lead->getPublicKey(), 'route' => $lead->getRouteKey(), ], 'id' => $lead->id, 'product_id' => $lead->product_id, 'leadable_id' => $lead->leadable_id, 'leadable_type' => $lead->leadable_type, 'status' => $lead->status, 'subject' => $lead->subject, 'date' => $lead->date, 'details' => $lead->details, 'created_at' => $lead->created_at, 'updated_at' => $lead->updated_at, 'deleted_at' => $lead->deleted_at, 'url' => [ 'public' => trans_url('lead/'.$lead->getPublicKey()), 'user' => guard_url('lead/lead/'.$lead->getRouteKey()), ], 'status' => trans('app.'.$lead->status), 'created_at' => format_date($lead->created_at), 'updated_at' => format_date($lead->updated_at), ]; } }