1+ <div class =" row deal-product-row" >
2+ <div class =" col-6" >
3+ @include (' laravel-crm::partials.form.hidden' ,[
4+ ' name' => ' item_deal_product_id[' . $index . ' ]' ,
5+ ' value' => old (' item_deal_product_id.' . $index , null ),
6+ ] )
7+ <span class =" autocomplete autocomplete-product-name" data-index =" {{ $index } }" >
8+ @include (' laravel-crm::partials.form.hidden' ,[
9+ ' name' => ' item_product_id[' . $index . ' ]' ,
10+ ' value' => old (' item_product_id.' . $index , null ),
11+ ] )
12+ @include (' laravel-crm::partials.form.text' ,[
13+ ' name' => ' item_name[' . $index . ' ]' ,
14+ ' label' => ' Item' ,
15+ ' value' => old (' item_name.' . $index , null ),
16+ ' attributes' => [
17+ ' autocomplete' => \Illuminate \Support \Str:: random (),
18+
19+ ]
20+ ] )
21+ </span >
22+ </div >
23+ <div class =" col" >
24+ @include (' laravel-crm::partials.form.text' ,[
25+ ' name' => ' item_price[' . $index . ' ]' ,
26+ ' label' => ' Price' ,
27+ ' type' => ' number' ,
28+ ' value' => old (' item_price.' . $index , null ) ,
29+ ' attributes' => [
30+ ' step' => .01
31+ ]
32+ ] )
33+ </div >
34+ <div class =" col" >
35+ @include (' laravel-crm::partials.form.text' ,[
36+ ' name' => ' item_quantity[' . $index . ' ]' ,
37+ ' label' => ' Quantity' ,
38+ ' type' => ' number' ,
39+ ' value' => old (' item_quantity.' . $index , 1 )
40+ ] )
41+ </div >
42+ <div class =" col" >
43+ @include (' laravel-crm::partials.form.text' ,[
44+ ' name' => ' item_amount[' . $index . ' ]' ,
45+ ' label' => ' Amount' ,
46+ ' type' => ' number' ,
47+ ' value' => old (' item_amount.' . $index , null ) ,
48+ ' attributes' => [
49+ ' step' => .01 ,
50+ ' readonly' => ' readonly'
51+ ]
52+ ] )
53+ </div >
54+ </div >
0 commit comments