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