<!--<span *ngIf="show" class="backToList">
    <a (click)="show = !show;" tooltip="Go to listing">Back to List</a>
    </span>-->

<div class="col-lg-12" *ngIf="!show">
    <tabset>
        <tab>
            <ng-template tabHeading> Courier Details List</ng-template>
            <div class="card">
                <div class="card-header">
                    <i class="fa fa-align-justify"></i> Courier Details 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-responsiv">
                        <thead>
                            <tr>
                                <th>Courier Name</th>
                                <th>Docket No.</th>
                                <th>Date</th>
                                <th>Type</th>
                                <th>Comments</th>
                                <th>Send To / Received From</th>
                                <th>Received By/ Dispatched By</th>
                                <th>Status</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr *ngFor="let cour of courier">
                                <td>{{cour.courierName}}</td>
                                <td>{{cour.docketNo}}</td>
                                <td>{{cour.date}}</td>
                                <td>{{cour.type}}</td>
                                <td>{{cour.comments}}</td>
                                <td>{{cour.sendTo}}</td>
                                <td>{{cour.receiveBy}}</td>
                                <td>{{cour.status}}</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.courierName }}</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>Docket No. : </b> </label> {{myModalData.docketNo}}
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <label><b>Type : </b> </label> {{myModalData.type}}
                        </div>
                        <div class="col-md-6">
                            <label><b>Comments : </b> </label> {{myModalData.comments}}
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <label><b>Qty : </b> </label> {{myModalData.qt}}
                        </div>
                        <div class="col-md-6">
                            <label><b>Weight : </b> </label> {{myModalData.weight}}
                        </div>
                    </div>
                     <div class="row">
                        <div class="col-md-6">
                            <label><b>Amount : </b> </label> {{myModalData.amt}}
                        </div>
                        <div class="col-md-6">
                            <label><b>Date : </b> </label> {{myModalData.date}}
                        </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="2">Sent to SC</option>
                                <option value="3">Rejection</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 changes</button>-->
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>
<!-- /.modal -->