@php $fields = [ 'stock_item' => ['label' => 'Stock Item', 'type' => 'select', 'readonly' => false ], 'description' => ['label' => 'Description', 'type' => 'textarea'], 'quantity' => ['label' => 'Quantity', 'type' => 'number', 'class' => 'quantity'], 'uom' => ['label' => 'UOM', 'type' => 'text'], 'supply_lead_time' => ['label' => 'Supply Lead Time','type' => 'text',], 'unit_rate' => ['label' => 'Unit Rate (INR)', 'type' => 'number', 'class' => 'unit-rate'], 'tds' => ['label' => 'TDS (%)', 'type' => 'number', 'class' => 'tds'], 'discount' => ['label' => 'Discount (%)', 'type' => 'number', 'class' => 'discount'], 'value' => ['label' => 'Value (INR)', 'type' => 'number', 'readonly' => true, 'class' => 'value'], 'sgst' => ['label' => 'SGST (%)', 'type' => 'number', 'class' => 'sgst', 'step' => '0.01'], 'cgst' => ['label' => 'CGST (%)', 'type' => 'number', 'class' => 'cgst', 'step' => '0.01'], 'igst' => ['label' => 'IGST (%)', 'type' => 'number', 'class' => 'igst', 'step' => '0.01'], 'amount' => ['label' => 'Amount (INR)', 'type' => 'number', 'readonly' => true, 'class' => 'amount'], ]; @endphp
@foreach ($fields as $key => $field) @endforeach @php $rowIndex = 0; @endphp @if (!empty($items) && count($items)) @foreach ($items as $item) @foreach ($fields as $key => $field) @endforeach @php $rowIndex++; @endphp @endforeach @else {{-- @foreach ($fields as $key => $field) @endforeach --}} @endif
Sl No.{{ $field['label'] }}Actions
{{ $rowIndex + 1 }} @if ($field['type'] === 'textarea') @elseif($field['type'] === 'select' && $key == 'stock_item') @else @endif
1 @if ($field['type'] === 'textarea') @else @endif
Quotation Summary & Totals in INR