<?php 
echo App\viewStrategy::getAllProvincesOptions();
?>
                      </select>
                    </td>
                  @endif
                    <?php 
if (Auth::user()->municipality) {
} else {
    ?>
                    <td  style = "width:197px" >

                      <select name = 'municipality'>
                        
                        <?php 
    echo Auth::user()->province ? App\viewStrategy::getMunicipalitiessOptions(Auth::user()->province, isset($_POST['municipality']) ? $_POST['municipality'] : "") : App\viewStrategy::getAllMunicipalitiesOptions();
    ?>
                      </select>
                    </td>
                   <?php 
}
?>
                      
                      <td>
                      <button type = 'submit' class="pure-button pure-button-primary" name = 'btnSearch'>Search</button>
                      </td>
                    <td><button type = 'button' onclick = "print()" class = "pure-button pure-button-secondary">Print</button></td>

                  </form>
                </tr>
    ?>
                                        <input id = 'municipality' type = 'hidden' name = 'municipality' value = '<?php 
    echo Auth::user()->municipality;
    ?>
'/>

                                        <?php 
    echo Auth::user()->municipality;
} else {
    ?>
                                      <select id = 'municipality' class = "pure-u-11-24" required name = 'municipality' id = 'selectMunicipality'>

                                        <?php 
    //if lgu
    if (Auth::user()->department_id == 1) {
        App\viewStrategy::getMunicipalitiessOptions(Auth::user()->province);
        //elseif dilg ro
    } else {
        if (Auth::user()->department_id == 3) {
            App\viewStrategy::getMunicipalitiessOptions2();
        }
    }
}
?>
                                      </select>
                                  </div>
                                  <div class="form-group  pure-u-1 pure-u-md-1-3">
                                      <label for="lastname" class= "mylabel">Last name:</label>
                                      <input onkeypress = "return validate(event)" class = "pure-u-11-24" autocomplete="off" required id="lastname" name = "lastname" type="text" >
                                  </div>
                                  <div class="form-group  pure-u-1 pure-u-md-1-3">