@extends('layouts.page') @section('title') Relief Indent Relief Indent Kit @endsection @section('navs') Add New Item Edit Item @endsection @section('content') @include ('common.errors')
| Item | Quantity (KG/No) | Unit Cost (₹) | Total Cost (₹) | Add | Delete | @if ($kit) @foreach ($kit as $item)
|---|---|---|---|---|---|
| {!! EasyForm::select("kit[item][]", null, $item->item, DataHelper::reliefItems(), ['required' => true, 'onchange' => 'checkItem(this)']) !!} | {!! EasyForm::input("kit[quantity][]", null, $item->quantity, ['required' => true, 'onchange' => 'updateTotal(this)', 'type' => 'number', 'step' => 'any']) !!} | {!! EasyForm::input("kit[unit_cost][]", null, $item->unit_cost, ['required' => true, 'onchange' => 'updateTotal(this)', 'type' => 'number', 'step' => 'any']) !!} | {!! EasyForm::input("kit[total_cost][]", null, $item->total_cost, ['required' => true, 'type' => 'number', 'readonly' => true]) !!} | ||
| {!! EasyForm::select("kit[item][]", null, null, DataHelper::reliefItems(), ['required' => true, 'onchange' => 'checkItem(this)']) !!} | {!! EasyForm::input("kit[quantity][]", null, null, ['required' => true, 'onchange' => 'updateTotal(this)', 'type' => 'number', 'step' => 'any']) !!} | {!! EasyForm::input("kit[unit_cost][]", null, null, ['required' => true, 'onchange' => 'updateTotal(this)', 'type' => 'number', 'step' => 'any']) !!} | {!! EasyForm::input("kit[total_cost][]", null, null, ['required' => true, 'type' => 'number', 'readonly' => true]) !!} |