
<div class="form-row">
    <div class="form-group col-sm-6">
                    {!! TranslatableBootForm::text('Item Name', 'name')->placeholder('Item Name')   !!}	 
    </div>
    <div class="form-group col-sm-6">
                    {!! TranslatableBootForm::text('Description', 'description')->placeholder('Description')   !!}	 
    </div>
</div>   


<div class="form-row">
        <div class="form-group col-sm-6">
                {!! BootForm::text('Category', 'category_id')->placeholder('Category')->value('');   !!}	 
        </div>
        <div class="form-group col-sm-6">
                {!! BootForm::text('Specification', 'spec')->placeholder('Specification')   !!}	 
        </div>
</div>

<div class="form-row">
        <div class="form-group col-sm-4">
                {!! BootForm::text('Opening Stock', 'opening_stock')->placeholder('Opening Stock')   !!}
        </div>
        <div class="form-group col-sm-4">
                {!! BootForm::text('Unit Price', 'unit_price')->placeholder('Unit Price')   !!}	 
        </div>
        <div class="form-group col-sm-4">
                {!! BootForm::text('Weight', 'weight')->placeholder('Weight')   !!}	 
        </div>
</div>

@component('partials.selectize', [
        'labelField' => 'name',
        'valueField' => 'id',
        'searchField' => 'name',
        'url' => '/admin/api/consumable_categories/',
        'select_id' => 'category_id',
        'defaultValue' => !empty(old('purpose'))?old('purpose'):
        ((isset($album))?implode(",", $album->purposes()->select('master_id as id')->pluck('id')->toArray()):null),
        //'uploadedFiles' => $singer->attachments->toArray()
    ])
@endcomponent

<!-- Submit Field -->
<div class="form-group col-sm-12">
    {!! Form::submit('Save', ['class' => 'btn btn-primary']) !!}
    <a href="{!! route('consumableItems.index') !!}" class="btn btn-default">Cancel</a>
</div>
