add country activity report

This commit is contained in:
2025-03-02 10:55:03 +03:30
parent a65ec5e2bd
commit b31ea8bba2
3 changed files with 89 additions and 2 deletions

View File

@@ -162,4 +162,17 @@ class SafetyAndPrivacyController extends Controller
return $this->successResponse();
}
public function deserialize(SafetyAndPrivacy $safety_and_privacy): JsonResponse
{
$judiciaries = isset($safety_and_privacy->judiciary_document) ? unserialize($safety_and_privacy->judiciary_document) : [];
$result = [];
foreach ($judiciaries as $judiciary) {
$result[] = Storage::disk('public')->url($judiciary);
}
return $this->successResponse($result);
}
}