Ejemplo n.º 1
0
 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');
     }
 }
Ejemplo n.º 2
0
 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'));
 }