{!! TranslatableBootForm::text('Item Name', 'name')->placeholder('Item Name') !!}
{!! TranslatableBootForm::text('Description', 'description')->placeholder('Description') !!}
{!! BootForm::text('Category', 'category_id')->placeholder('Category')->value(''); !!}
{!! BootForm::text('Specification', 'spec')->placeholder('Specification') !!}
{!! BootForm::text('Opening Stock', 'opening_stock')->placeholder('Opening Stock') !!}
{!! BootForm::text('Unit Price', 'unit_price')->placeholder('Unit Price') !!}
{!! BootForm::text('Weight', 'weight')->placeholder('Weight') !!}
@component('partials.selectize', [ 'labelField' => 'name', 'valueField' => 'id', 'searchField' => 'name', 'url' => '/admin/api/consumable_categories/', 'select_id' => 'category_id', 'defaultValue' => !empty(old('category_id'))?old('category_id'): ((isset($consumableItem))?implode(",", [$consumableItem->category()->first()->id]):null), //'uploadedFiles' => $singer->attachments->toArray() ]) @endcomponent
{!! Form::submit('Save', ['class' => 'btn btn-primary']) !!} Cancel