|
@@ -2438,16 +2438,21 @@ class RecruitController extends Controller
|
|
|
->get();
|
|
|
$data = [];
|
|
|
foreach ($list as $k => $v){
|
|
|
+ $place = $v->ex_place == null ? 'empty' : $v->ex_place;
|
|
|
+ if(!array_key_exists($place,$data)){
|
|
|
+ $data[$place] = [];
|
|
|
+ }
|
|
|
+
|
|
|
$room = $v->ex_room == null ? 'empty' : $v->ex_room;
|
|
|
- if(!array_key_exists($room,$data)){
|
|
|
- $data[$room] = [];
|
|
|
+ if(!array_key_exists($room,$data[$place])){
|
|
|
+ $data[$place][$room] = [];
|
|
|
}
|
|
|
$item = [
|
|
|
'avatar' => $v->avatar,
|
|
|
'seat' => $v->ex_seat,
|
|
|
'realname' => $v->realname
|
|
|
];
|
|
|
- array_push($data[$room],$item);
|
|
|
+ array_push($data[$place][$room],$item);
|
|
|
}
|
|
|
return $content->body(view('admin.recruit.sign_table')->with(['data' => $data]));
|
|
|
}
|