<div class="form-row">
    <div class="form-group col-sm-4">
            {!! BootForm::text('Bond Product', 'bond_name')->placeholder('Bond Product')->value('');   !!}	           
    </div>
    <div class="form-group col-sm-4">
            {!! BootForm::text('Powder Weight(gms)', 'weight')->placeholder('Powder Weight(gms)')   !!}	 
        </div>
        <div class="form-group col-sm-4">
            {!! BootForm::text('Powder Cost(per gm)', 'powder_cost')->placeholder('Powder Cost')   !!}	 
        </div>

</div>

<div class="form-row">
        <div class="form-group col-sm-3">
                {!! BootForm::text('Bond Process', 'bond_process')->placeholder('Bond Process')->value('');   !!}	 
        </div>
        <div class="form-group col-sm-3">
                {!! BootForm::text('Packing Settings', 'packing_settings')->placeholder('Packing Settings')->attribute('id', 'packing_settings')->value('') ;    !!}	         
        </div>
        <div class="form-group col-sm-3">
                {!! BootForm::text('Total Piece Packing(pcs)', 'total_piece_packing')->placeholder('Total Piece Packing(pcs)')   !!}	         
        </div>
        <div class="form-group col-sm-3">
                {!! BootForm::text('Finishing Settings', 'finishing_settings')->placeholder('Finishing Settings')->value('');   !!}	         
        </div>
       
</div>

<div class="form-row">
        <div class="form-group col-sm-4">
                {!! BootForm::select('Priority', 'priority')->options(['NORMAL' => 'NORMAL', 'MEDIUM' => 'MEDIUM', 'HIGH' => 'HIGH', 'URGENT' => 'URGENT' ]);   !!}	         
        </div>
</div>
@component('partials.selectize_render', [
        'labelField' => 'name',
        'seclabelField' => 'design_name',
        'valueField' => 'id',
        'searchField' => 'name',
        'maxItem' => 1,
        'url' => '/admin/api/bond_product/',
        'select_id' => 'bond_name',
        'defaultValue' => !empty(old('bond_name'))?old('bond_name'):
        ((isset($recipe))?implode(",", [$recipe->bond_product_id]):null),
        //'uploadedFiles' => $singer->attachments->toArray()
    ])
@endcomponent

@component('partials.selectize', [
        'labelField' => 'name',
        'valueField' => 'id',
        'searchField' => 'name',
        'maxItem' => 1,
        'url' => '/admin/api/packing_settings/',
        'select_id' => 'packing_settings',
        'defaultValue' => !empty(old('packing_settings'))?old('packing_settings'):
        ((isset($recipe))?implode(",", $recipe->packingSettings()->select('id')->pluck('id')->toArray()):null),
        //'uploadedFiles' => $singer->attachments->toArray()
    ])
@endcomponent

@component('partials.selectize', [
        'labelField' => 'name',
        'valueField' => 'id',
        'searchField' => 'name',
        'maxItem' => 1,
        'url' => '/admin/api/finishing_settings/',
        'select_id' => 'finishing_settings',
        'defaultValue' => !empty(old('finishing_settings'))?old('finishing_settings'):
        ((isset($recipe))?implode(",", $recipe->finishingSettings()->select('id')->pluck('id')->toArray()):null),
        //'uploadedFiles' => $singer->attachments->toArray()
    ])
@endcomponent


@component('partials.selectize', [
        'labelField' => 'name',
        'valueField' => 'id',
        'searchField' => 'name',
        'maxItems' => 1,
        'url' => '/admin/api/bond_process/',
        'select_id' => 'bond_process',
        'defaultValue' => !empty(old('bond_process'))?old('bond_process'):
        ((isset($recipe))?implode(",", $recipe->bondProcessParam()->select('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('bondMaterialRecipes.index') !!}" class="btn btn-default">Cancel</a>
</div>
