<div class="row">
  <div class="col-lg-12 mt-4">
    <div class="card">
      <div class="card-header form-card-header">
        <h4 class="m-b-0 text-light">ADD BSM / RBSM</h4>
      </div>
      <div class="card-body">
        <form id="add_bsm" class="form-material">
          <div class="form-body">
            <div class="row">
              <div class="col-md-4">
                <div class="form-group">
                  <label class="control-label"><strong>SELECT TYPE <span>*</span></strong></label>
                  <select name="type" id="type" class="form-control">
                    <option value="">SELECT TYPE</option>
                    <option value="bsm">BSM</option>
                    <option value="rbsm">RBSM</option>
                  </select>
                  <label for="type" class="error"></label> 
                </div>
              </div>

              <div class="col-md-4">
                <div class="form-group">
                  <label class="control-label"><strong>SELECT YEAR <span>*</span></strong></label>
                  <select name="year" id="year" class="form-control">
                    <option value="">SELECT YEAR</option>
                    <?php foreach($years_master as $val){ ?>
                      <option value="<?php echo $val->year; ?>"><?php echo $val->year; ?></option>
                    <?php } ?>
                  </select>
                  <label for="year" class="error"></label> 
                </div>
              </div>

              <div class="col-md-4"></div>
                
              <div class="col-md-6">
                <div class="form-group">
                  <label class="control-label"><strong>START DATE </strong></label>
                  <input type="text" id="from_date" name="from_date" class="form-control">
                  <label for="from_date" class="error"></label> 
                </div>
              </div>

              <div class="col-md-6">
                <div class="form-group">
                  <label class="control-label"><strong>END DATE </strong></label>
                  <input type="text" id="to_date" name="to_date" class="form-control">
                  <label for="to_date" class="error"></label> 
                </div>
              </div>

              <div class="col-md-12">
                <div class="form-group">
                  <label class="control-label"><strong>UPLOAD IMAGE</strong></label>
                  <input type="file" name="image" id="image" class="form-control"/>
                  <label> Note : image size ( 250 x 180 pixels )</label>
                  <label for="image" class="error"></label> 
                </div>
              </div>
            <!--  
              <div class="col-md-12">
                <div class="form-group">
                  <label class="control-label"><strong>UPLOAD FILE <span>*</span></strong></label>
                  <input type="file" id="file" name="file" class="form-control">
                  <label> Note : max size 5 mb allowed. </label>
                  <label for="file" class="error"></label> 
                </div>
              </div>
            -->  
              <div class="col-md-12">
                <div class="form-group">
                  <label class="control-label"><strong>Link </strong></label>
                  <input type="text" id="filepath_forpdf" name="filepath_forpdf" class="form-control">
                  <label for="name" class="error"></label> 
                </div>
              </div>
              
              <div class="col-md-12">
                <div class="form-group">
                  <label class="control-label"><strong>NAME <span>*</span></strong></label>
                  <input type="text" id="name" name="name" class="form-control">
                  <label for="name" class="error"></label> 
                </div>
              </div>
            </div>
          </div>

          <div class="form-actions">
            <button type="submit" class="btn btn-rounded btn-outline-success col-md-3">SAVE</button>  
            <button type="button" class="btn btn-rounded btn-outline-danger col-md-3" onclick="window.location.href='<?php echo base_url(); ?>bsm/list'">CANCEL</button>  
          </div>
        </form>
      </div>
    </div>
  </div>
</div>