<div class="col-lg-12" *ngIf="!show">
    <tabset>
        <tab>
            <ng-template tabHeading>Application Status</ng-template>
            <div class="form-group">
                <div class="row">
                    <div class="form-group col-md-4">
                        <label for="name"> Select Study 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> Application Status List
                </div>
                <div class="card-body">
                    <div>
                        <div class="row">
                            <div class="col-md-2">
                                <div class="input-prepend input-group">
                                    <select id="disabledSelect" class="form-control">
                                    <option value="0">Batch</option>
                                    <option value="1">Jan 2017</option>
                                    <option value="2">Jul 2017</option>
                                    <option value="3">Jan 2018</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 University</option>
                                    <option value="1">MMM univ</option>
                                    <option value="2">PPP univ</option>
                                    <option value="3">SSS univ</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">Please Sem/Year</option>
                                    <option value="1">2</option>
                                    <option value="2">3</option>
                                    <option value="3">4</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>
                    </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>
                    <table class="table table-bordered table-responsive">
                        <thead>
                            <tr>
                                <th>Form Id</th>
                                <th>Student Name</th>
                                <th>Father Name</th>
                                <th>Course</th>
                                <th>Sem/Year</th>
                                <th>Status</th>
                                <!--<th>Action</th>-->
                            </tr>
                        </thead>
                        <tbody>
                            <tr *ngFor="let app of applicationDetails">
                                <td>{{app.applicationId}}</td>
                                <td>{{app.studentName}}</td>
                                <td>{{app.fatherName}}</td>
                                <td>{{app.courseName}}</td>
                                <td>{{app.sem}}</td>
                                <td>
                                    <span *ngIf="app.status == 1" class="badge badge-success">Active</span>
                                    <span *ngIf="app.status == 0" class="badge badge-danger">In-Active</span>
                                </td>
                                <!--<td>
                                     <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 Name : </b> </label> {{myModalData.studentName}}
                        </div>
                        <div class="col-md-6">
                            <label><b>Course Name : </b> </label> {{myModalData.courseName}}
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <label><b> Sem/Year : </b> </label> {{myModalData.sem}}
                        </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">Approved</option>
                                <option value="2">Rejected</option>
                                <option value="3">Canceled</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 -->