<table class="table table-hover table-bordered">
    <thead>
        <tr>
           
            <th scope="col">{{ __('members.name') }}</th>
            <th scope="col">{{ __('members.email') }}</th>
            <th scope="col">{{ __('members.phone') }}</th>
            <th scope="col">{{ __('members.gender') }}</th>
            <th scope="col">{{ __('members.date_of_birth') }}</th>
            <th scope="col">{{ __('members.role') }}</th>
            <th scope="col">{{ __('members.country_id') }}</th>
            <th scope="col">{{ __('members.city_id') }}</th>
            <th scope="col">{{ __('dashboard.created_at') }}</th>
        </tr>
    </thead>
    <tbody>
    @foreach($rows as $row)
        <tr>
            
            <td>{{ $row->name }}</td>
            <td>{{ $row->email }}</td>
            <td>{{ $row->phone }}</td>
            <td>@if($row->gender == 'male') {{ __('members.male') }} @else  {{ __('members.female') }} @endif</td>
            <td>{{ $row->date_of_birth }}</td>
            <td>{{ __('members.'.$row->role) }}</td>
            <td>{{ $row->country ? $row->country->currentDescription->name : '' }}</td>
            <td>{{ $row->city ? $row->city->currentDescription->name : '' }}</td>
            <td>{{ \Carbon\Carbon::parse($row->created_at)->format('Y/m/d') }}</td>
            
        </tr>
    @endforeach
    </tbody>
</table>