|
@@ -808,6 +808,14 @@ class Member extends Component
|
|
|
if (!isset($_GET["from"]) && $this->from == '')
|
|
if (!isset($_GET["from"]) && $this->from == '')
|
|
|
$this->from = 'members';
|
|
$this->from = 'members';
|
|
|
$this->currentMember = \App\Models\Member::findOrFail($id);
|
|
$this->currentMember = \App\Models\Member::findOrFail($id);
|
|
|
|
|
+ $categories = [];
|
|
|
|
|
+ foreach ($this->currentMember->categories as $category) {
|
|
|
|
|
+ $categories[$category->category_id] = $category;
|
|
|
|
|
+ }
|
|
|
|
|
+ usort($categories, function($a, $b){
|
|
|
|
|
+ return strcmp($a->category->getTree(), $b->category->getTree());
|
|
|
|
|
+ });
|
|
|
|
|
+ $this->currentMember->categories = $categories;
|
|
|
$this->currentStatus = $this->currentMember->getStatus();
|
|
$this->currentStatus = $this->currentMember->getStatus();
|
|
|
$this->showDetail = true;
|
|
$this->showDetail = true;
|
|
|
}
|
|
}
|