{!! BootForm::text('Name', 'rule_name')->placeholder('Rule Name') !!}
{!! BootForm::text('Qty', 'qty')->placeholder('Qty') !!}
{!! BootForm::select('Rule Type', 'rule_type')->options(['PRODUCED_PCS' => 'PRODUCED_PCS', 'MOULD' => 'MOULD', 'QC_PCS' => 'QC_PCS', 'PACKED_PCS' => 'PACKED_PCS', 'DAYS' => 'DAYS','DATE' => 'DATE' ]); !!}
@component('partials.datetimepicker', [ 'dateid' => 'rule_date', 'placeholder' => 'Rule Date' ]) @endcomponent
{!! TranslatableBootForm::textarea('Heading', 'heading')->placeholder('Heading')->rows(2) !!}
{!! TranslatableBootForm::textarea('Message', 'message')->placeholder('Message')->rows(2) !!}
{!! BootForm::text('Consumable Categories', 'consumable_settings')->placeholder('Consumable Categories')->value(''); !!}
{!! BootForm::text('Machine', 'machine')->placeholder('Machine')->value(''); !!}
{!! BootForm::select('Priority', 'priority')->options(['LOW' => 'LOW', 'MEDIUM' => 'MEDIUM', 'URGENT' => 'URGENT', 'INFO' => 'INFO']); !!}
{!! BootForm::select('Status', 'status')->options(['ACTIVE' => 'Active', 'INACTIVE' => 'InActive']); !!}
@if(isset($alertRule) && !empty($alertRule->getFirstMedia('icon'))) @endif
@component('partials.selectize', [ 'labelField' => 'name', 'valueField' => 'id', 'searchField' => 'name', 'url' => '/admin/api/consumable_settings', 'select_id' => 'consumable_settings', 'defaultValue' => !empty(old('consumable_settings'))?old('consumable_settings'): ((isset($alertRule))?implode(",", $alertRule->consumableSettings()->select('attachable_id as id')->pluck('id')->toArray()):null), ]) @endcomponent @component('partials.selectize', [ 'labelField' => 'name', 'valueField' => 'id', 'searchField' => 'name', 'url' => '/admin/api/machine', 'select_id' => 'machine', 'defaultValue' => !empty(old('machine'))?old('machine'): ((isset($alertRule))?implode(",", $alertRule->machines()->select('machine_id as id')->pluck('id')->toArray()):null), ]) @endcomponent
{!! Form::submit('Save', ['class' => 'btn btn-primary']) !!} Cancel