Item
Visible?
Cost/Currency
Removal Quantity
{!! $stocks->render() !!} @foreach ($stocks as $stock)
{!! Form::hidden('stock_id[]', $stock->id) !!}
@if (isset($stock->item->image_url)) {{ $stock->item->name }} @endif {!! $stock->item->name !!} - {{ $stock->stock_type }} @if (!$stock->is_visible) @endif
{!! Form::checkbox('is_visible[' . $stock->id . ']', 1, $stock->is_visible ?? 1, [ 'class' => 'form-check-input', 'data-toggle' => 'toggle', ]) !!}
{!! Form::text('cost[]', $stock->cost, ['class' => 'form-control']) !!}
{!! Form::select('currency_id[]', $currencies, $stock->currency_id, [ 'class' => 'form-control currency-select selectize', 'placeholder' => 'Select Currency', ]) !!}
{!! Form::selectRange('quantity[]', 0, $stock->quantity, 0, [ 'class' => 'quantity-select', 'type' => 'number', 'style' => 'min-width:40px;', ]) !!} /{{ $stock->quantity }}
@endforeach {!! $stocks->render() !!}