<table>
    <thead>
        <tr>
            @if($user->disabledColumn('title','regions'))
                <th scope="col">{{ __('regions.title') }}</th>
            @endif
            @if($user->disabledColumn('country_id','regions'))
                <th scope="col">{{ __('regions.country_id') }}</th>
            @endif
            @if($user->disabledColumn('created_at','regions'))
                <th scope="col" >{{ __('dashboard.created_at') }}</th>
            @endif
        </tr>
    </thead>
    <tbody class="response">
        @foreach($regions as $key=> $row)
            <tr>
                @if($user->disabledColumn('title','regions'))
                    <td>{{ $row->title }}</td>
                @endif
                @if($user->disabledColumn('country_id','regions'))
                        <td class="column_country_id"> {{ $row->country->currentDescription->title ?? '' }} </td>
                @endif
                @if($user->disabledColumn('created_at','regions'))
                    <td>{{ \Carbon\Carbon::parse($row->created_at)->format('Y/m/d') }}</td>
                @endif
            </tr>
        @endforeach
    </tbody>
</table>
