{!! Form::select('hardware_id', $global_hardware_inventories->pluck('name', 'id'), $job->hardwares->pluck('id'), ['class' => 'form-control hardware select2', 'id' => 'hardware_options', 'multiple' => true]) !!}
@foreach ($global_hardware_inventories as $k => $hardware)
@php
$qty = $job->hardwares->where('id', $hardware->id)->first()->pivot->qty ?? null
@endphp
@endforeach