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