<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-warning">
                        <go-back/>
                        <i class="fas fa-users"></i> Goal Template Detail
                    </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">Goal Template Detail</li>
                    </ol>
                </div>
            </div>
        </div><!-- /.container-fluid -->
    </section>
    <style>
        .badge{
            font-size: 95% !important;
        }
    </style>
    <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-body p-0 mt-2">
                            <div class="table-responsive">
                                <table id="heroList" class="table table-bordered table-striped table-sm heroList">
                                    <thead>
                                        <tr>
                                            <th style="width:40px;">S.NO</th>
                                            <th style="width:200px">Template</th>
                                            <th style="width:80px;">Total Goals</th>
                                            <th style="width:100px;">Total Hours</th>  
                                            <th style="width:100px;">Total Assigned Heroes</th> 
                                            <th style="width:100px;">In-Progress Goals</th> 
                                            <th style="width:100px;">Completed Goals</th> 
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr ng-repeat="goal in allGoalTemplates track by $index" class="{{hero.is_admin ? 'font-weight-bold' : ''}}">
                                            <td>{{$index+1}}</td>
                                            <td>
                                                <a href="/goal-dashboard/{{goal.tid}}" target="_blank"><span class="nowrap">{{goal.name}}</span><span ng-if="hero.is_admin"><i class="fas fa-check-circle"> &nbsp;</i></span></a><br>
                                            </td>                                       
                                            <td><span>{{goal.allgoals}}</span></td>
                                            <td><span>{{goal.total_hours}}</span></td>
                                            <td><span>{{goal.total_heroes}}</span></td>
                                            <td><span>{{goal.total_progress}}</span></td>
                                            <td><span>{{goal.total_completed}}</span></td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                            <!-- /.table-responsive -->
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>    
</div>