- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
foreach ($relations as $relation) {
$structured_relations[$relation['status_name']][] = [
'id' => $relation['sl_id'],
'status' => $relation['status'],
'status_name' => $relation['status_name'],
'parent' => $relation['parent'],
'parent_name' => $relation['parent_name'],
'customer' => $relation['customer'],
'provider' => $relation['provider'],
'admin' => $relation['admin'],
];
}
return $structured_relations;