/**
  * Get All Language Details
  * @return mixed
  * @author Vini Dubey
  */
 public static function getLanguageDetails()
 {
     $ObjLanguageModel = Languages::getInstance();
     $selectColumn = ['languages.*'];
     $langInfo = $ObjLanguageModel->getAllLanguages($selectColumn);
     return $langInfo;
 }
 public function editLanguage(Request $request, $lid)
 {
     $response = new stdClass();
     $ObjLanguageModel = Languages::getInstance();
     $ObjLocationModel = Location::getInstance();
     $postData = $request->all();
     //
     if ($request->isMethod('GET')) {
         $where = ['rawQuery' => 'location_type = ?', 'bindParams' => [0]];
         $countrydetails = $ObjLocationModel->getAllCountryDetails($where);
         $where = ['rawQuery' => 'lang_id = ?', 'bindParams' => [$lid]];
         $selectedColumns = ['location.name as location_name', 'languages.*'];
         $languagedetails = $ObjLanguageModel->getAllLanguageDetails($where, $selectedColumns);
         return view('Admin/Views/administration/editLanguage', ['countrydetail' => $countrydetails, 'languagedetails' => $languagedetails[0]]);
     } elseif ($request->isMethod('POST')) {
         //            echo"<pre>";print_r($request->all());die("dgvf");
         $data['lang_code'] = $postData['lang_code'];
         $data['name'] = $postData['name'];
         $data['country_code'] = $postData['country_code'];
         // $data['status'] = $postData['statact'];
         $where = ['rawQuery' => 'lang_id = ?', 'bindParams' => [$lid]];
         //$where['id'] = $mid;
         $updateUser = $ObjLanguageModel->updateLanguageStatus($data, $where);
         //            echo"<pre>";print_r($updateUser);die("cfh");
         if ($updateUser) {
         }
     }
 }