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