77 lines
4.4 KiB
PHP
77 lines
4.4 KiB
PHP
|
<div class="card card-body ingredient-card card-border-secondary mb-2 border">
|
||
|
<div class="row gy-2 mb-2">
|
||
|
<div class="col-md-2">
|
||
|
{{ html()->label('Category')->class('form-label') }}
|
||
|
@if (isset($editable) && $editable)
|
||
|
{{ html()->select('ingredient_category_id[]', $ingredientCategoryList, $item->ingredient_category_id)->class('form-select ingredient_category_id')->attributes(['id' => 'ingredient_category_id'])->placeholder('Enter Category')->required() }}
|
||
|
@else
|
||
|
{{ html()->select('ingredient_category_id[]', $ingredientCategoryList)->class('form-select ingredient_category_id')->attributes(['id' => 'ingredient_category_id'])->placeholder('Enter Category')->required() }}
|
||
|
|
||
|
@endif
|
||
|
</div>
|
||
|
<div class="col-md-3">
|
||
|
{{ html()->label('Ingredient')->class('form-label') }}
|
||
|
@if (isset($editable) && $editable)
|
||
|
{{ html()->select('ingredient_id[]', $ingredientList, $item->ingredient_id)->class('form-select ingredient_id')->attributes(['id' => 'ingredient_id'])->placeholder('')->required() }}
|
||
|
@else
|
||
|
{{ html()->select('ingredient_id[]', [], null)->class('form-select ingredient_id')->attributes(['id' => 'ingredient_id'])->placeholder('')->required()->disabled() }}
|
||
|
|
||
|
@endif
|
||
|
</div>
|
||
|
{{-- <div class="col-md-2">
|
||
|
{{ html()->label('Stock')->class('form-label') }}
|
||
|
@if (isset($editable) && $editable)
|
||
|
{{ html()->select('stock_id[]', $stockList, $item->stock_id)->class('form-select stock_id')->attributes(['id' => 'stock_id'])->placeholder('')->required() }}
|
||
|
@else
|
||
|
{{ html()->select('stock_id[]', $stockList)->class('form-select stock_id')->attributes(['id' => 'stock_id'])->placeholder('')->required()->disabled() }}
|
||
|
|
||
|
@endif
|
||
|
</div> --}}
|
||
|
{{-- <div class="col-md-1">
|
||
|
{{ html()->label('Size')->class('form-label') }}
|
||
|
{{ html()->select('size_id[]', $sizes)->class('form-select ')->placeholder('size') }}
|
||
|
</div> --}}
|
||
|
|
||
|
<div class="col-md-2">
|
||
|
{{ html()->label('Price')->class('form-label') }}
|
||
|
{{ html()->text('price[]', isset($editable) && $editable ? $item->price : null)->class('form-control ingredient-price cleave-numeral rate~~')->placeholder('Price')->attributes(['id' => 'rate', 'onkeyup' => 'validatePriceInput(this)']) }}
|
||
|
</div>
|
||
|
|
||
|
<div class="col-md-2">
|
||
|
{{ html()->label('Unit')->class('form-label') }}
|
||
|
@if (isset($editable) && $editable)
|
||
|
{{ html()->select('unit_id[]', $unitList, $item->unit_id)->class('form-select unit_id')->attributes(['id' => 'unit_id'])->placeholder('')->required() }}
|
||
|
@else
|
||
|
{{ html()->select('unit_id[]', $unitList)->class('form-select unit_id')->attributes(['id' => 'unit_id'])->placeholder('')->required() }}
|
||
|
|
||
|
@endif
|
||
|
</div>
|
||
|
|
||
|
{{-- <div class="col-md-2">
|
||
|
{{ html()->label('Unit')->class('form-label') }}
|
||
|
{{ html()->text('unit[]', isset($editable) && $editable ? $item->unit : null)->class('form-control ingredient-unit cleave-numeral rate~~')->placeholder('Enter Unit')->required()}}
|
||
|
</div> --}}
|
||
|
|
||
|
<div class="col-md-1">
|
||
|
{{ html()->label('Quantity')->class('form-label') }}
|
||
|
{{ html()->text('qty[]', isset($editable) && $editable ? $item->quantity : null)->class('form-control ingredient-quantity cleave-numeral qty')->placeholder('QTY')->attributes(['id' => 'qty', 'onkeyup' => 'validateNumericInput(this)']) }}
|
||
|
</div>
|
||
|
|
||
|
<div class="col-md-2">
|
||
|
{{ html()->label('Amount')->class('form-label') }}
|
||
|
{{ html()->text('amt[]', isset($editable) && $editable ? $item->amount : null)->class('form-control ingredient-line-price bg-light')->placeholder('Enter Amount')->isReadOnly() }}
|
||
|
</div>
|
||
|
|
||
|
<div class="col-md-6">
|
||
|
{{ html()->label('Description')->class('form-label') }}
|
||
|
{{ html()->text('desc[]', isset($editable) && $editable ? $item->desc : null)->class('form-control')->placeholder('Enter Description') }}
|
||
|
</div>
|
||
|
|
||
|
<div class="col-md-6 d-flex justify-content-end align-items-end">
|
||
|
<button type="button" class="btn btn-danger btn-icon waves-effect btn-remove waves-light"><i
|
||
|
class="ri-delete-bin-5-line"></i></button>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
</div>
|