<div class="col-lg-12" *ngIf="!show">
    <tabset>
        <tab>
            <ng-template tabHeading>Study Material Status</ng-template>
            <div class="form-group">
                <div class="row">
                    <div class="form-group col-md-4">
                        <label for="name"> Study Material Center</label>
                            <select id="disabledSelect" class="form-control">
                                <option value="0">Please select Study Center</option>
                                <option value="1">SC 001</option>
                                <option value="2">SC 002</option>
                                <option value="3">SC 003</option>
                            </select>
                    </div>
                </div>
            </div>
            <div class="card">
                <div class="card-header">
                    <i class="fa fa-align-justify"></i> Study Matrial Status List
                </div>
                <div class="card-body">
                    <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>
                    <table class="table table-bordered table-responsive">
                        <thead>
                            <tr>
                                <th>ID</th>
                                <th>Study Material Details</th>
                                <th>University</th>
                                <th>Course</th>
                                <th>Total</th>
                                <th>Status</th>
                                <th>Action</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr *ngFor="let app of studyMaterialDetails">
                                <td>{{app.applicationId}}</td>
                                <td>{{app.details}}</td>
                                <td>{{app.univ}}</td>
                                <td>{{app.course}}</td>
                                <td>{{app.total}}</td>
                                <td>
                                    <span *ngIf="app.status == 1" class="badge badge-success">Received</span>
                                    <span *ngIf="app.status == 0" class="badge badge-danger">Sent</span>
                                </td>
                                <td>
                                    <!--<i class="fa fa-edit" tooltip="Edit" (click)="editStudyCenter()"></i> |-->
                                    <i class="fa fa-eye" tooltip="View More" data-toggle="modal" (click)="myModal.show(); getModelWindowDetails(app)"></i>
                                </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>
        </tab>
    </tabset>
</div>


<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">
                <h4 class="modal-title">{{ myModalData.applicationId }}</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">
                    <div class="row">
                        <div class="col-md-6">
                            <label><b> Student Material Details : </b> </label> {{myModalData.details}}
                        </div>
                        <div class="col-md-6">
                            <label><b>University : </b> </label> {{myModalData.univ}}
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <label><b> Course : </b> </label> {{myModalData.course}}
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <label><b> Total : </b> </label> {{myModalData.total}}
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <label><b> Sent Date : </b> </label> 
                        </div>
                         <div class="col-md-6">
                            <label><b> Comments : </b> </label> 
                        </div>
                    </div>
                      <div class="row">
                        <div class="col-md-6">
                            <label><b> Recive Date : </b> </label> 
                        </div>
                         <div class="col-md-6">
                            <label><b> Comments : </b> </label>
                        </div>
                    </div>
                    <div class="row">
                    <div class="col-md-4">
                         <label for="name"> Status</label>
                            <select id="disabledSelect" class="form-control">
                                <option value="0">Select Status</option>
                                <option value="1">Sent</option>
                                <option value="2">Received</option>
                            </select>
                    </div>
                       <div class="col-md-4">
                        <label for="comment">Comments <span class="danger">*</span></label>
                        <textarea class="form-control" id="comments" placeholder="Enter Comments"></textarea>
                                           
                    </div>
                    </div>
                </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 -->