-1
@foreach($items as $item)
<tr>
<td><input type="checkbox" name="check_delete[]" value="{{$item->item_num}}" /></td>
<td>{!! $item->item_num !!}</td>
<td>{!! \App\Category::where('cat_id',$item->model)->first()->cat_name !!}</td>
<td>{!! \App\Category::where('cat_id',$item->model)->first()->selling_price !!}</td>
<td>{!! $item->color !!}</td>
<td>{!! $item->production_year !!}</td>
<td>
<a style="width: 80%"
href="{!! action('[email protected]', $item->model) !!}">Edit</a>
</td>
<td>
<div>
<a href="{!! action('[email protected]', $item->item_id) !!}"
class="btn btn-info">Edit</a>
</div>
</td>
<td width="8%">
<div>
<a href="{!! action('[email protected]', $item->item_id) !!}"
class="btn btn-danger" onclick="return confirmDelete();">Delete</a>
</div>
</td>
{!! Form::open(array('url'=>'/entry/print/bar-code/'.$item->item_num)) !!}
<td width="8%">
<div>
{!!Form::number('numToPrint'.$item->item_num,null,array('class'=>'form-control pull-right','placeholder'=>'Number of Copies To Print','style'=>'width:100%','id'=>'numToPrint'.$item->item_num)) !!}
</div>
</td>
<td width="8%">
<div><button href="{!! action('[email protected]', $item->item_num) !!}" class="btn btn-primary">Print</button>
</div>
</td>
{!! Form::close() !!}
</tr>
@endforeach
</tbody>
<td width="8%">
<div>
<a href="{!! action('[email protected]_by_checks') !!}"
class="btn btn-danger" onclick="return confirmDelete();">Delete by checks</a>
</div>
</td>
</table>
@endif
これは私のルートlaravel5.2は、複数のチェックボックスから値を取得する方法を
Route::get('entry/delete/item', ['uses' => '[email protected]_by_checks']);
私はチェックして、削除をクリックして、書き込みdd($request->check_delete)
iが得るとき0.Iがで削除入れてみました問題であり、フォームでチェックしても動作しません。
私はアイテムのために、すべての値が私を疲れ.this問題をチェックし得るチェックして、削除をクリックすると、いずれかがどのように解決する方法を教えてください時に私は、あなたがあなたのフォーム内のあなたのチェックボックスを置きたい