@foreach($members as $key=> $row)
<tr>
    <th scope="row">
        @if ($row->role == 'sub_admin')
            @if (auth()->member()->id != $row->id)
                <div class="custom-control custom-checkbox">
                    <input type="checkbox" class="custom-control-input selectOne deleteCheck" id="customCheck{{$row->id}}" value="{{$row->id}}" name="id[]">
                    <label class="custom-control-label" for="customCheck{{$row->id}}"></label>
                </div>
            @endif
        @endif

    </th>
    <td>{{ $row->name }}</td>
    <td>{{ $row->email }}</td>
    <td>{{ $row->phone }}</td>
    <td>{{ __('members.roles.'.$row->role) }}</td>
    <td colspan="2">{{ \Carbon\Carbon::parse($row->created_at)->format('Y/m/d') }}</td>
    <td>

        <div class="dropdown">
            <button class="icon_dots dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-expanded="false">
                <i class="bi bi-three-dots-vertical"></i>
            </button>
            <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">


                        <a href="{{ route ('store.members.edit', $row->id) }}" class="dropdown-item" title="{{ __('dashboard.edit') }}"> <i class="bi bi-pen ml-1"></i> {{ __('dashboard.edit') }} </a>
                        <a href="{{ route ('store.members.show', $row->id) }}" class="dropdown-item" title="{{ __('members.addresses') }}"> <i class="bi bi-pen ml-1"></i> {{ __('members.addresses') }} </a>
                        <a href="{{ route ('store.orders.index').'?user='.$row->name }}" class="dropdown-item" title="{{ __('members.orders') }}"> <i class="bi bi-pen ml-1"></i> {{ __('members.orders') }} </a>

            </div>
        </div>



    </td>
</tr>
@endforeach

@if( count( $members ) && $members->hasPages() )
<tr> <td></td><td> {{ $members->links() }} </td> </tr>
@endif
