<div class="content-wrapper">
    <section class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-sm-6">
                    <h1 class="text-info"> <go-back/> <i class="fas fa-user-circle"></i> Manager List ({{heroes.length}}) </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 active">Managers</li>
                    </ol>
                </div>
            </div>
        </div><!-- /.container-fluid -->
    </section>
    <section class="content">
        <div class="container-fluid">
            <div class="row">
                <div class="col-md-12">
                    <div class="card card-warning card-outline">
                        <div class="card-header border-transparent">
                            <h3 class="card-title">&nbsp;</h3>
                            <div class="card-tools">
                                <div class="btn-group">
                                    <button type="button" title="Fullscreen Toggle" class="btn btn-dark toggle-fullscreen"><i class="fas fa-expand"></i></button>
                                    <button type="button" class="btn btn-dark" data-widget="collapse"><i class="fas fa-minus"></i></button>
                                </div>
                            </div>
                        </div>
                        <div class="card-body p-0">
                            <div class="table-responsive">
                                <table id="managerList" class="table table-bordered table-striped table-sm">
                                    <thead>
                                    <tr>
                                        <th>Name</th>
                                        <th>Emp Code</th>
                                        <th>Email</th>
                                        <th>Mobile</th>
                                        <th>Line Manager</th>
                                        <th>Designation</th>
                                        <th>Department</th>
                                        <th>Actions</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr ng-repeat="hero in heroes">
                                        <td>
                                            <span class="nowrap">{{hero.emp_first_name+' '+hero.emp_last_name}}</span>
                                            
                                        </td>
                                        <td><span>{{hero.emp_code}}</span></td>
                                        <td>
                                            <strong class="nowrap"><a href="{{'mailto:'+hero.emp_email}}" target="_blank">{{hero.emp_email}}</a></strong>
                                        </td>
                                        <td><span class=""><a target="_blank" href="{{'tel:'+hero.emp_mobile}}">{{hero.emp_mobile}}</a></span></td>
                                        <td><span class="nowrap">{{hero.lm_first+' '+hero.lm_last}}</span></td>
                                        <td><span class="nowrap">{{hero.emp_designation}}</span></td>
                                        <td><span class="">{{hero.emp_department}}</span></td>
                                        <!--<td><span class="{{'badge '+poolStatus(hero.emp_pool)}}">{{hoursToPercent(hero.emp_pool)}}</span></td>-->

                                        <td class="text-center">
                                            <div class="btn-group btn-group-sm nowrap">
                                                <button type="button" class="btn btn-xs btn-success" ng-click="goToSelf('heroView',{employeeid:hero.employeeid})"><i class="fas fa-eye"></i> View</button>
                                                <button type="button" class="btn btn-xs btn-success dropdown-toggle" data-toggle="dropdown">
                                                    <span class="caret"></span>
                                                    <span class="sr-only">Toggle Dropdown</span>
                                                </button>
                                                <div class="dropdown-menu dropdown-menu-right" role="menu">
                                                    <a class="dropdown-item" ng-href="{{baseurl+'/heroes/edit/'+hero.employeeid}}"><i class="fas fa-pen"></i> Edit</a>
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
</div>
