@foreach($stocks as $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}}">{{-- $row->id --}}</label>
            </div>
        </th>
        <td>{{ $row->uuid }}</td>
        <td>{{ $row->product->code }}</td>
        <td>{{ $row->product->currentDescription->title }}</td>
        <td>{{ $row->category->currentDescription->title }}</td>
        <td>{{ __('stocks.statuses_action.'.$row->status) }}</td>
        <td>{{ $row->count }}</td>
        <td>{{ $row->price }}</td>
        <td>{{ $row->date }}</td>
        <td colspan="2">{{ \Carbon\Carbon::parse($row->created_at)->format('Y/m/d') }}</td>
        <td>
            <div class="dropdown">
                <button class="icon_dots dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-expanded="false">
                    <i class="bi bi-three-dots-vertical"></i>
                </button>
                <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
                    <a href="{{ route ('canteen.stocks.show', $row->id) }}" class="dropdown-item" title="{{ __('dashboard.show') }}"> <i class="bi bi-pen ml-1"></i> {{ __('dashboard.show') }} </a>
                </div>
            </div>
        </td>
    </tr>
@endforeach

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