47 lines
2.4 KiB
PHP
47 lines
2.4 KiB
PHP
<div class="card card-body product-card card-border-secondary mb-2 border">
|
|
<div class="row gy-2 mb-2">
|
|
<div class="col-md-4">
|
|
{{ html()->label('Product')->class('form-label') }}
|
|
@if (isset($editable) && $editable)
|
|
{{ html()->select('product_id[]', $productList, $item->product_id)->class('form-select product_id')->attributes(['id' => 'product_id'])->placeholder('Enter Product Name')->required() }}
|
|
@else
|
|
@endif
|
|
{{ html()->select('product_id[]', $productList)->class('form-select product_id')->attributes(['id' => 'product_id'])->placeholder('Enter Product Name')->required() }}
|
|
|
|
|
|
</div>
|
|
|
|
<div class="col-md-2">
|
|
{{ html()->label('Unit')->class('form-label') }}
|
|
{{ html()->text('unit[]', isset($editable) && $editable ? $item->unit : null)->class('form-control unit')->placeholder('Enter Unit')->required()->attributes(['id' => 'unit']) }}
|
|
|
|
</div>
|
|
|
|
<div class="col-md-2">
|
|
{{ html()->label('Rate')->class('form-label') }}
|
|
{{ html()->text('rate[]', isset($editable) && $editable ? $item->rate : null)->class('form-control product-price cleave-numeral rate~~')->placeholder('Enter Rate')->attributes(['id' => 'rate']) }}
|
|
</div>
|
|
|
|
<div class="col-md-2">
|
|
{{ html()->label('Quantity')->class('form-label') }}
|
|
{{ html()->text('qty[]', isset($editable) && $editable ? $item->quantity : null)->class('form-control product-quantity cleave-numeral qty')->placeholder('Enter QTY')->attributes(['id' => 'qty']) }}
|
|
</div>
|
|
|
|
<div class="col-md-2">
|
|
{{ html()->label('Amount')->class('form-label') }}
|
|
{{ html()->text('amt[]', isset($editable) && $editable ? $item->amount : null)->class('form-control product-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>
|