@php $fields = [ 'stock_item' => [ 'label' => 'Stock Item', 'type' => 'text', 'class' => 'material-code form-control', ], 'description' => [ 'label' => 'Description', 'type' => 'textarea', 'class' => 'description form-control', ], 'quantity' => [ 'label' => 'Quantity', 'type' => 'number', 'class' => 'quantity form-control', ], 'uom' => [ 'label' => 'UOM', 'type' => 'text', 'class' => 'uom form-control', ], 'supply_lead_time' => [ 'label' => 'Supply Lead Time', 'type' => 'text', 'class' => 'Supply Lead Time form-control', ], 'unit_rate' => [ 'label' => 'Unit Rate (INR)', 'type' => 'number', 'class' => 'rate form-control', ], 'tds' => [ 'label' => 'TDS (%)', 'type' => 'number', 'class' => 'tds form-control', ], 'discount' => [ 'label' => 'Discount (%)', 'type' => 'number', 'class' => 'discount form-control', ], 'value' => [ 'label' => 'Value (INR)', 'type' => 'number', 'class' => 'value form-control', 'readonly' => true, ], 'sgst' => [ 'label' => 'SGST (%)', 'type' => 'number', 'class' => 'sgst form-control', 'step' => '0.01', ], 'cgst' => [ 'label' => 'CGST (%)', 'type' => 'number', 'class' => 'cgst form-control', 'step' => '0.01', ], 'igst' => [ 'label' => 'IGST (%)', 'type' => 'number', 'class' => 'igst form-control', 'step' => '0.01', ], 'amount' => [ 'label' => 'Amount (INR)', 'type' => 'number', 'class' => 'amount form-control', 'readonly' => true, ], ]; @endphp
@foreach ($fields as $key => $field) @endforeach @foreach ($fields as $key => $field) @endforeach
Sl No. {{ $field['label'] }} @if (isset($field['required']) && $field['required']) * @endif Actions
1 @if ($field['type'] === 'textarea') @else @endif