 
 <tabset>
     
 <tab>
      <div class="col-lg-12" *ngIf="!show"> 
      <ng-template tabHeading> View Allocation of Study Materials &nbsp;</ng-template>
      <!--/.row-->
       <div class="card"> 
         <div class="card-header">
                    <i class="fa fa-align-justify"></i> Allocate Study Materials
                </div>
               
                 <div class="card-body">
                   <div class="row">
                        <div class="col-md-3">
                            <div class="input-prepend input-group">
                                <select id="disabledSelect" class="form-control">
                                    <option value="0">Please Select Styducenter</option>
                                    <option value="1">MMM Stydycenter</option>
                                    <option value="2">PPP Stydycenter</option>
                                    <option value="3">SSS Stydycenter</option>
                                </select>
                            </div>
                        </div>
                        <div class="col-md-3">
                            <div class="input-prepend input-group">
                                <select id="disabledSelect" class="form-control">
                                    <option value="0">Please Select Course</option>
                                    <option value="1">B.com</option>
                                    <option value="2">MCA</option>
                                    <option value="3">M.Sc</option>
                                </select>
                            </div>
                        </div>
                        
                        <div class="col-md-2">
                            <div class="input-prepend input-group">
                                <select id="disabledSelect" class="form-control">
                                    <option value="0">Sem/Year</option>
                                    <option value="1">1st Sem/2018</option>
                                    <option value="2">2nd Sem/2018</option>
                                    <option value="3">3rd Sem/2019</option>
                                </select>
                            </div>
                        </div>
                        <div class="col-md-2">
                            <div class="input-prepend input-group">
                                <button type="button" value="Submit" class="btn btn-primary"> <i class="fa fa-search"></i> Filter</button>
                            </div>
                        </div>
                    </div>
                    <br>
                   
	 <div class="row">
                        <div class="col-md-4">
                            <div class="input-prepend input-group">
                                <span class="input-group-addon">
                                    <i class="fa fa-search"></i>
                                    </span>
                                <input id="search" class="form-control" type="text" placeholder="search">
                            </div>
                        </div>
                    </div>
			  <br>
  <div class="row">
    <div class="col-lg-12 col-xs-12">
      <table class="table table-bordered">
        <thead>
          <tr>
            <th>Study Center Name</th>
		      	<th>Sem/Year</th>
            <th>Course Name</th>
            <th> Quantity</th>
            <th>Status</th>
          
		
          </tr>
        </thead>
        <tbody>
         <tr *ngFor="let app of studyMaterialDetails">
            <td>{{app.studycentername}}</td>
		    <td>{{app.sem}}</td>
            <td>{{app.course}}</td>
             <td style="color:blue;"><a (click)="myModal.show(); getModelWindowDetails(app,'answerBooklet')">{{app.Quantity}} </a></td>
			
      	  <td>
         <span class="badge badge-danger">sent</span>
	</td>
          </tr>
         
          
        </tbody>
      </table>
      <ul class="pagination">
        <li class="page-item"><a class="page-link" href="#">Prev</a></li>
        <li class="page-item active">
          <a class="page-link" href="#">1</a>
        </li>
        <li class="page-item"><a class="page-link" href="#">2</a></li>
        <li class="page-item"><a class="page-link" href="#">3</a></li>
        <li class="page-item"><a class="page-link" href="#">4</a></li>
        <li class="page-item"><a class="page-link" href="#">Next</a></li>
      </ul>
    </div>
  </div>
  </div>
    <!--/.col-->
  </div>
  <!--/.row-->
 </div>
    </tab>

     <div bsModal #myModal="bs-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg" role="document" *ngIf="myModalData">
        <div class="modal-content">
            <div class="modal-header">
                <strong>Student List</strong>
                <h4 class="modal-title" *ngIf="modelType == 'markCard'"> Mark Card Status</h4>
                <h4 class="modal-title" *ngIf="modelType == 'answerBooklet'"> Answer Booklet Status</h4>
                <button type="button" class="close" (click)="myModal.hide()" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
            </div>
            <div class="modal-body">
                <div class="container">
                    <table class="table table-bordered table-responsive">
                        <thead>
                            <tr>
                                <th>Form ID</th>
                                <th>Student Name</th>
                                <th>Batch Name</th>
                                <th>Session</th>
                                
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>Form001</td>
                                <td>Vikram</td>
                                <td><b>{{ modelType | uppercase }} </b> Batch A</td>
                                <td>1st/2018</td>
                               
                            </tr>
                             <tr>
                                <td>Form002</td>
                                <td>Raj</td>
                                <td><b>{{ modelType | uppercase }} </b> Batch A</td>
                                <td>1st/2018</td>
                              
                            </tr>
                             <tr>
                                 <td>Form003</td>
                                <td>John</td>
                                <td><b>{{ modelType | uppercase }} </b> Batch A</td>
                                <td>1st/2018</td>
                               
                            </tr>
                             <tr>
                                <td>Form004</td>
                                <td>Karthik</td>
                                <td><b>{{ modelType | uppercase }} </b> Batch A</td>
                                <td>1st/2018</td>
                               
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" (click)="myModal.hide()">Close</button>
                <!--<button type="button" class="btn btn-primary">Save</button>-->
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>
<!-- /.modal -->
  
    <tab>
 <ng-template tabHeading>Allocate Study Materials</ng-template>
 <div class="card"> 
         <div class="card-header">
                    <i class="fa fa-align-justify"></i> Allocate Study Materials
                </div>
               
                 <div class="card-body">
                   <div class="row">
                        <div class="col-md-3">
                            <div class="input-prepend input-group">
                                <select id="disabledSelect" class="form-control">
                                    <option value="0">Please Select University</option>
                                    <option value="1">MMM University</option>
                                    <option value="2">PPP University</option>
                                    <option value="3">SSS University</option>
                                </select>
                            </div>
                        </div>
                        <div class="col-md-3">
                            <div class="input-prepend input-group">
                                <select id="disabledSelect" class="form-control">
                                    <option value="0">Please Select Course</option>
                                    <option value="1">B.com</option>
                                    <option value="2">MCA</option>
                                    <option value="3">M.Sc</option>
                                </select>
                            </div>
                        </div>
                        
                        <div class="col-md-2">
                            <div class="input-prepend input-group">
                                <select id="disabledSelect" class="form-control">
                                    <option value="0">Sem/Year</option>
                                    <option value="1">1st Sem/2018</option>
                                    <option value="2">2nd Sem/2018</option>
                                    <option value="3">3rd Sem/2019</option>
                                </select>
                            </div>
                        </div>
                        <div class="col-md-2">
                            <div class="input-prepend input-group">
                                <button type="button" value="Submit" class="btn btn-primary"> <i class="fa fa-search"></i> Filter</button>
                            </div>
                        </div>
                    </div>
                    <br>
                   
	 <div class="row">
                        <div class="col-md-4">
                            <div class="input-prepend input-group">
                                <span class="input-group-addon">
                                    <i class="fa fa-search"></i>
                                    </span>
                                <input id="search" class="form-control" type="text" placeholder="search">
                            </div>
                        </div>
                        </div>
                        <br>
                         <div class="row">
                         <div class="col-md-4">
              <label for="company"><strong>Total StudyMaterials On Hand</strong></label>
              <input type="text" class="form-control" id="company" placeholder="150">         
                 </div>
                    </div>
			  <br>
  <div class="row">
    <div class="col-lg-12 col-xs-12">
      <table class="table table-bordered">
        <thead>
          <tr>
            <th>Select</th>
            <th>Study Center Name</th>
			<th>Sem/Year</th>
            <th>Course Name</th>
             <th>Register Forms</th>
             <th>Paid Forms</th>
            <th>Allocate Quantity</th>
		
          </tr>
        </thead>
        <tbody>
          <tr>
            <td><input type="checkbox" name="name1" />&nbsp;</td>
            <td>Center A</td>
			<td>1st Sem / 2018</td>
            <td>MCA</td>
            
			<td>10</td>
            <td>10</td>
       <td><input type="text" value="10"></td>
		
          </tr>
          <tr>
            <td><input type="checkbox" name="name1" />&nbsp;</td>
            <td>Center B</td>
			<td>2nd Sem / 2018</td>
            <td>MBA</td>
            <td>15</td>
            <td>15</td>
       <td><input type="text" value="15"></td>
			
          </tr>
          <tr>
            <td><input type="checkbox" name="name1" />&nbsp;</td>
            <td>Center C</td>
			<td>3rd Sem / 2019</td>
            <td>BE</td>
            <td>20</td>
            <td>18</td>
       <td><input type="text" value="18"></td>
		
          </tr>
          <tr>
            <td><input type="checkbox" name="name1" />&nbsp;</td>
            <td>Center D</td>
		     	<td>4th Sem / 2019</td>
            <td>DE</td>
            
			<td>34</td>
            <td>34</td>
       <td><input type="text" value="34"></td>
		
          </tr>
          
        </tbody>
      </table>
      <ul class="pagination">
        <li class="page-item"><a class="page-link" href="#">Prev</a></li>
        <li class="page-item active">
          <a class="page-link" href="#">1</a>
        </li>
        <li class="page-item"><a class="page-link" href="#">2</a></li>
        <li class="page-item"><a class="page-link" href="#">3</a></li>
        <li class="page-item"><a class="page-link" href="#">4</a></li>
        <li class="page-item"><a class="page-link" href="#">Next</a></li>
      </ul>
    </div>
  </div>
  </div>
   <div class="card-footer">
          <div class="form-group row">
            <div class="col-md-12" align="right">
                <button type="button" class="btn btn-sm btn-success"><i class="fa fa-dot-circle-o"></i> Submit</button>
                <button type="reset" class="btn btn-sm btn-danger"><i class="fa fa-ban"></i> Reset</button>
            </div>
          </div> 
</div>
    <!--/.col-->
  </div>
 