<div class="table-responsive">
    <table id="dataTable" class="table">
        <thead class="bg-blue-50">
            <tr>
                <th scope="col">Sl No</th>
                <th scope="col">Marketing User</th>
                <th scope="col">Total Customer Add</th>
            </tr>
        </thead>
        <tbody class="bg-white divide-y divide-gray-200">
            @foreach ($user as $item)
                <tr>
                    <td>{{ $loop->iteration }}</td>
                    <td>{{ ($item->firstname ?? '') . ' ' . ($item->lastname ?? '') }}
                    </td>
                    <td>
                        {{ $item->clients->count() }}
                    </td>
                </tr>
            @endforeach
        </tbody>
    </table>
</div>
