| xqd
@@ -94,8 +94,9 @@ class DoctorManagementController extends AdminController
|
|
|
return $name;
|
|
|
}
|
|
|
})->label('info');
|
|
|
- $grid->column('serviceapply', __('开通服务'))->where('status',2)->pluck('service_type')->display(function ($type){
|
|
|
-// dd($type);
|
|
|
+ $grid->column('serviceapply', __('开通服务'))->where('status',2)->pluck('service_type')->toArray()->display(function ($type){
|
|
|
+ $type = array_unique($type);
|
|
|
+ dd($type);
|
|
|
$type_arr = [];
|
|
|
foreach ($type as $value)
|
|
|
{
|
| xqd
@@ -116,8 +117,6 @@ class DoctorManagementController extends AdminController
|
|
|
{
|
|
|
return '无';
|
|
|
}
|
|
|
- $type_arr = array_unique($type_arr);
|
|
|
-// dd($type_arr);
|
|
|
return $type_arr;
|
|
|
})->label('info');
|
|
|
$grid->column('label', __('标签'))->display(function ($label){
|