@@ -172,8 +172,11 @@ class AlarmOrderController extends Controller
...
@@ -172,8 +172,11 @@ class AlarmOrderController extends Controller
{
{
if($this->isadmin()){
if($this->isadmin()){
$users=DB::table('users')
$users=DB::table('users')
->select('users.name, users.username, users.email, users.phone_number, ur.name AS role_name')
->select('users.id','users.name','users.username','users.phone_number','ur.name AS role_name','ap.area_name AS province','aa.area_name AS area','ac.area_name AS city')
->leftJoin('user_roles AS ur','ur.id','=','users.user_role_id')
->leftJoin('user_roles AS ur','ur.id','=','users.user_role_id')
->leftJoin('areachina AS ap','ap.areaid','=','users.provinceid')
->leftJoin('areachina AS aa','aa.areaid','=','users.areaid')
->leftJoin('areachina AS ac','ac.areaid','=','users.cityid')