<div class="content-wrapper" ng-if="!myAccess.watchlistTagMaster">
    <div class="container-fluid">
        <div class="row">
            <div class="col-sm-6 offset-sm-1 offset-md-2 offset-lg-3 mt-5">
                <div class="alert alert-warning alert-dismissible">
                    <h5><i class="icon fas fa-ban"></i> 	!</h5>
                    Unauthorised Access.
                </div>
            </div>
        </div>
    </div>
</div>

<div class="content-wrapper" class="modal-demo" ng-if="myAccess.watchlistTagMaster">
    <section class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-sm-6">
                    <h1 class="text-{{page.color}}">
                        <go-back/>
                        <i class="fas {{page.icon}}"></i> WatchList Tag
                    </h1>
                </div>
                <div class="col-sm-6">
                    <ol class="breadcrumb float-sm-right">
                        <li class="breadcrumb-item"><a ng-href="{{baseurl}}/dashboard">Home</a></li>
                        <li class="breadcrumb-item text-blue">Watchlist Tag</li>
                    </ol>
                </div>
            </div>
        </div>
    </section>
    <section class="content">
        <div class="row">
            <div class="col-md-6">
                <div class="card card-outline card-success sticky-top top-100">
                    <div class="card-body" id="formCard">
                        <div class="col-sm-12">
                            <div class="form-group">
                                <label for="name">Tag Name</label>
                                <input type="text" id="tag" class="form-control" ng-model="data.tag" placeholder="Tag Name">
                            </div>
							<div class="form-group">
                                <label for="name">Tag Days</label>
                                <input type="text" id="tag_days" class="form-control" ng-model="data.tag_days" placeholder="Tag Days">
                            </div>
                            <div class="row">
                                <div class="col-12">
                                    <button type="button" class="btn btn-success float-right" ng-click="add(data)"><i class="fas fa-save"></i> Add Tag</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-md-6">
                <div class="card card-outline card-success">
                    <div class="card-body">
                        <div class="row">
                            <div class="col-12 col-md-12 col-lg-12">
                                <h5>Tag List</h5>
                                <div class="table-responsive">
                                    <table id="masterList" class="table table-bordered table-sm">
                                        <thead>
                                        <tr>
                                            <th>Tag</th>
                                            <th>Action</th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        <tr ng-repeat="dl in dataList">
                                            <td><strong>{{dl.tag|capitalize}}</strong></td>
                                            <td>
                                                <div class="btn-group btn-group-sm">
                                                    <button type="button" class="btn btn-xs bg-cyan" ng-click="edit(dl)"><i class="fas fa-pen-square" title="Edit"></i></button>
                                                    <button type="button" class="btn btn-xs {{dl.status==0?'bg-danger':'bg-success'}}" ng-click="{{dl.status==1?'delete(dl)':'edit(dl)'}}"><i class="fas fa-{{dl.status==1?'trash':'redo'}}" title="{{dl.status==0?'Inactive':'Active'}}"></i> {{dl.status==0?'Inactive':'Active'}}</button>
                                                </div>
                                            </td>
                                        </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
</div>
