<table>
    <thead>
    <tr>
        @if($user->disabledColumn('contact_list_id','daily_logs'))
            <th scope="col">{{ __('daily_logs.contact_list_id') }}</th>
        @endif
        @if($user->disabledColumn('date','daily_logs'))
            <th scope="col">{{ __('daily_logs.date') }}</th>
        @endif
        @if($user->disabledColumn('employee_id','daily_logs'))
            <th scope="col">{{ __('daily_logs.employee_id') }}</th>
        @endif
        @if($user->disabledColumn('objective','daily_logs'))
            <th scope="col">{{ __('daily_logs.objective') }}</th>
        @endif
        @if($user->disabledColumn('type','daily_logs'))
            <th scope="col">{{ __('daily_logs.type') }}</th>
        @endif
        @if($user->disabledColumn('estimated_sale','daily_logs'))
            <th scope="col">{{ __('daily_logs.estimated_sale') }}</th>
        @endif
        @if($user->disabledColumn('next_action','daily_logs'))
            <th scope="col">{{ __('daily_logs.next_action') }}</th>
        @endif
        @if($user->disabledColumn('next_contact','daily_logs'))
            <th scope="col">{{ __('daily_logs.next_contact') }}</th>
        @endif
        @if($user->disabledColumn('created_at','daily_logs'))
            <th scope="col" >{{ __('dashboard.created_at') }}</th>
        @endif
    </tr>
    </thead>
    <tbody class="response">
    @foreach($daily_logs as $key=> $row)
        <tr>
            @if($user->disabledColumn('contact_list_id','daily_logs'))
                <td>{{ $row->contactList->currentDescription->title ?? '' }}</td>
            @endif
            @if($user->disabledColumn('date','daily_logs'))
                <td>{{ $row->date }}</td>
            @endif
            @if($user->disabledColumn('employee_id','daily_logs'))
                <td>{{ $row->employee->name ?? '' }}</td>
            @endif
            @if($user->disabledColumn('objective','daily_logs'))
                <td>{{ __('daily_logs.objectives.'.$row->objective) }}</td>
            @endif
            @if($user->disabledColumn('type','daily_logs'))
                <td>{{ __('daily_logs.types.'.$row->type) }}</td>
            @endif
            @if($user->disabledColumn('estimated_sale','daily_logs'))
                <td>{{ $row->estimated_sale }}</td>
            @endif
            @if($user->disabledColumn('next_action','daily_logs'))
                <td>{{ __('daily_logs.next_actions.'.$row->next_action) }}</td>
            @endif
            @if($user->disabledColumn('next_contact','daily_logs'))
                <td>{{ $row->next_contact }}</td>
            @endif
            @if($user->disabledColumn('created_at','daily_logs'))
                <td>{{ \Carbon\Carbon::parse($row->created_at)->format('Y/m/d') }}</td>
            @endif
        </tr>
    @endforeach
    </tbody>
</table>

