<div class="table-responsive">
    <div class="d-flex justify-content-between">
        <h5 class="mb-0"><!-- Task Tracking --></h5>
        {{-- @if(auth()->user()->can('product-prices-create')) --}}
        {{-- <button type="button" class="btn btn-primary" id="createTaskTracking"  data-bs-toggle="modal" data-bs-target="#commonModal"><i class="bx bx-plus"></i> Add New</button> --}}
        {{-- @endif --}}
    </div>
    <hr class="mb-2">
    <table id="example" class="table table-bordered align-middle" style="width:100%">
        <thead class="table-light">
            <tr>
                <th class="thbutton">Sl No</th>
                <th>Assign To </th>
                <th>Task Title </th>
                <th>Task Status </th>
                <th>Task Priority </th>
                {{-- <th width="10%">Status</th> --}}
                {{-- @if(auth()->user()->can('tags-edit')) --}}
                {{-- <th class="thbutton">Edit</th> --}}
                {{-- @endif --}}
                {{-- @if(auth()->user()->can('tags-delete')) --}}
                <th class="thbutton">Delete</th>
                {{-- @endif --}}
            </tr>
        </thead>
        <tbody>
            @php $i=1;@endphp
            @if(count($taskTracking)>0)
                @foreach($taskTracking as $key=> $list)
                <tr>
                    <td class="text-center">{{ $key + 1}}</td>
                    <td>{{$list->getAssignTo->name ?? '' }}</td>
                    <td>{{$list->getTasks->title ?? '' }}</td>
                    <td>{{$list->getTaskStatus->name ?? '' }}</td>
                    <td>{{$list->getTaskPriority->name ?? '' }}</td>
                    {{-- <td>
                        <div class="form-check form-check-inline{{$i}}">
                            <input class="form-check-input{{$i}} btn-lg changeStatusCustom" type="checkbox" id="inlineCheckbox{{$i}}" data-url="{{route('task-tracking.changestatus')}}" data-id="{{$list->id}}" data-status="{{$list->status=='0' ? '1' : '0'}}" {{ $list->status=='1' ? 'checked' : ''}}>
                        </div>
                    </td> --}}
                    {{-- @if(auth()->user()->can('tags-edit')) --}}
                    {{-- <td style="font-size: 5px;">
                        <button type="button" class="btn btn-outline-secondary" data-id="{!! $list->id !!}" id="editTaskTracking"  data-bs-toggle="modal" data-bs-target="#commonModal"><i class="bi bi-pencil-square"></i></i></button>
                    </td> --}}
                    {{-- @endif --}}
                    {{-- @if(auth()->user()->can('tags-delete')) --}}
                    <td class="text-center">
                        <a data-url="{{route('task-tracking.destroy')}}" data-id="{{$list->id}}" class="btn btn-danger deleteAccountData task_tracking" href="#" class="text-danger" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Delete">
                            <i class="bi bi-trash text-white"></i>
                        </a>
                    </td>
                    {{-- @endif --}}
                </tr>
                    @php $i++; @endphp
                @endforeach
            @else
            <tr>
                <td colspan="12">No Data Found</td>
            </tr>
            @endif
        </tbody>
    </table>
</div>
</div>

