@if (isset($inventory))
{!! Form::model($inventory, ['route' => ['inventory.update', $inventory->id], 'class' => 'inventory-form', 'enctype' => 'multipart/form-data', 'accept-charset' => 'UTF-8']) !!}
@method('PUT')
@else
{!! Form::open(['route' => 'inventory.store', 'class' => 'inventory-form', 'enctype' => 'multipart/form-data', 'accept-charset' => 'UTF-8']) !!}
@endif
{!! Form::label('branch_id', __('custom.attribute.branch_id')) !!}
{!! Form::select('branch_id', Helper::getBranchesDropdown(), null, ['class' => 'form-control'], Helper::getOptionClasses(Helper::getBranchesDropdown())) !!}
{!! Form::label('touch_point_id', __('custom.attribute.touch_point_id')) !!}
{!! Form::select('touch_point_id', Helper::getTouchPointsDropdown(), null, ['class' => 'form-control'], Helper::getOptionClasses(Helper::getTouchPointsDropdown())) !!}
{!! Form::label('type', __('custom.attribute.type')) !!}
{!! Form::select('type', Helper::getInventoryTypes(), null, ['class' => 'form-control'], Helper::getOptionClasses(Helper::getInventoryTypes())) !!}
{!! Form::label('name', __('custom.attribute.name')) !!}
{!! Form::text('name', null, ['class' => 'form-control']) !!}
{!! Form::label('serial_number', __('custom.attribute.serial_number')) !!}
{!! Form::text('serial_number', null, ['class' => 'form-control']) !!}
{!! Form::label('installation_date', __('custom.attribute.installation_date')) !!}
{!! Form::text('installation_date', null, ['class' => 'form-control']) !!}
{!! Form::label('note', __('custom.attribute.note')) !!}
{!! Form::textarea('note', null, ['class' => 'form-control']) !!}
{!! Form::close() !!}