|
@@ -2406,9 +2406,14 @@ class RecruitController extends Controller
|
|
->get();
|
|
->get();
|
|
$data = [];
|
|
$data = [];
|
|
foreach ($list as $k => $v){
|
|
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;
|
|
$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 = [
|
|
$item = [
|
|
'avatar' => $v->avatar,
|
|
'avatar' => $v->avatar,
|
|
@@ -2416,7 +2421,7 @@ class RecruitController extends Controller
|
|
'realname' => $v->realname,
|
|
'realname' => $v->realname,
|
|
'number' => $v->ex_number
|
|
'number' => $v->ex_number
|
|
];
|
|
];
|
|
- array_push($data[$room],$item);
|
|
|
|
|
|
+ array_push($data[$place][$room],$item);
|
|
}
|
|
}
|
|
//dd($data);
|
|
//dd($data);
|
|
return $content->body(view('admin.recruit.seat_sticker')->with(['data' => $data]));
|
|
return $content->body(view('admin.recruit.seat_sticker')->with(['data' => $data]));
|