<table class="table">
    <thead class="thead-dark">
        <tr>
        <!--th scope="col">Description</th-->
        <th scope="col">Location</th>
        <th scope="col">Created</th>
        <th scope="col">Begin</th>
        <th scope="col">Completed</th>
        <th scope="col">Late</th>
        
        <!--th scope="col"></th-->
        </tr>
    </thead>
    <tbody>
        @foreach($tasks as $q)
            <tr>
                <!--td>{{$q->description}} </td-->
                <td>{{$q->location->name}} </td>
                <td>{{$q->created_count}} </td>
                <td>{{$q->started_count}} </td>
                <td>{{$q->completed_count}} </td>
                @if($q->late_count==0)
                    <td>{{$q->late_count}} </td>
                @else 
                    <td class="badge badge-danger">{{$q->late_count}} </td>
                @endif
            </tr>
        @endforeach
    </tbody>
</table>