@foreach($workHours as $key=> $row)
<tr>
    <th scope="row">
        <div class="custom-control custom-checkbox">
            <input type="checkbox" class="custom-control-input selectOne deleteCheck" id="customCheck{{$row->id}}" value="{{$row->id}}" name="id[]">
            <label class="custom-control-label" for="customCheck{{$row->id}}"></label>
        </div>
    </th>
    <td>{{ $weekDays[$row->week_day] }}</td>
    <td class="{{$row->status == 'closed' ? 'text-danger' : ''}}">{{ $row->time_from ? $row->time_from : __('workHours.'.$row->status)}}</td>
    <td class="{{$row->status == 'closed' ? 'text-danger' : ''}}">{{ $row->time_to ? $row->time_to : __('workHours.'.$row->status) }}</td>
    <td colspan="2">{{ \Carbon\Carbon::parse($row->created_at)->format('Y/m/d') }}</td>
    <td>
        <a href="{{ route ('workHours.edit', $row->id) }}" class="icon" title="{{ __('dashboard.edit') }}"><img src="{{ asset('assets/admin/images/icons/draw.svg') }}" alt="{{ __('dashboard.edit') }}"></a>
    </td>
</tr>
@endforeach

@if( count( $workHours ) )
<tr> <td></td><td> {{ $workHours->links() }} </td> </tr>
@endif

