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