public function gotoMap($id)
 {
     $mapCount = LotMap::where('id', $id)->get()->count();
     if ($mapCount > 0) {
         return response()->json(array('success' => true, 'msg' => 'proceed'));
     } else {
         return response('fail');
     }
 }
 public function alpha()
 {
     $lotmap = LotMap::latest()->get();
     $lotdefs = LotDef::where('map_id', '=', 2)->get();
     $lds = $lotdefs->select('id')->distinct()->pluck('id');
     $lotinfos = LotInfo::whereIn('id', $lds);
     //        $lotinfos   = LotInfo::all();
     $statusdefs = StatusDef::where('build_type_id', '=', 3)->orderBy('order', 'DESC')->get();
     //dd(compact('lotmap', 'lotdefs', 'lotinfos'));
     return view('lot_master_alpha', compact('lotmap', 'lotdefs', 'lotinfos', 'statusdefs'));
 }