This repository was archived by the owner on Oct 24, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4141 "datatables.net" : " ^1.11.3" ,
4242 "datatables.net-bs4" : " ^2.2.2" ,
4343 "datatables.net-dt" : " ^1.11.3" ,
44+ "jquery-ui" : " ^1.14.1" ,
4445 "js-cookie" : " ^3.0.5" ,
4546 "vue" : " ^2.6.14"
4647 }
Original file line number Diff line number Diff line change 546546 <label for =" user_id" class =" col-md-4 col-form-label text-md-right" >{{ __ (' interface.data.user_id' ) } } </label >
547547
548548 <div class =" col-md-8" >
549- <input id =" user_id" type =" number " class =" form-control " name =" user_id" value =" {{ $contract -> user_id } }" >
549+ <input id =" user_id" type =" text " class =" form-control " name =" user_id" value =" {{ $contract -> user_id } }" data-autocomplete = " user_id " >
550550
551551 @error (' user_id' )
552552 <span class =" invalid-feedback" role =" alert" >
795795 ],
796796 order: [[0 , ' desc' ]],
797797 });
798+
799+ $ (' [data-autocomplete="user_id"]' ).autocomplete ({
800+ source: ' /admin/customers/search' ,
801+ });
798802 });
799803 </script >
800804@endsection
Original file line number Diff line number Diff line change 5252 <label for =" user_id" class =" col-md-4 col-form-label text-md-right" >{{ __ (' interface.data.user_id' ) } } </label >
5353
5454 <div class =" col-md-8" >
55- <input id =" user_id" type =" number " class =" form-control @error (' user_id' ) is-invalid @enderror " name =" user_id" value =" {{ old (' user_id' ) } }" >
55+ <input id =" user_id" type =" text " class =" form-control @error (' user_id' ) is-invalid @enderror " name =" user_id" value =" {{ old (' user_id' ) } }" data-autocomplete = " user_id " >
5656
5757 @error (' user_id' )
5858 <span class =" invalid-feedback" role =" alert" >
108108 ],
109109 order: [[0 , ' desc' ]]
110110 });
111+
112+ $ (' [data-autocomplete="user_id"]' ).autocomplete ({
113+ source: ' /admin/customers/search' ,
114+ });
111115 });
112116 </script >
113117@endsection
Original file line number Diff line number Diff line change 13121312 <label for =" contract_id" class =" col-md-4 col-form-label text-md-right" >{{ __ (' interface.data.contract_id' ) } } </label >
13131313
13141314 <div class =" col-md-8" >
1315- <input id =" contract_id" type =" number " class =" form-control @error (' contract_id' ) is-invalid @enderror " name =" contract_id" value =" {{ old (' contract_id' ) } }" >
1315+ <input id =" contract_id" type =" text " class =" form-control @error (' contract_id' ) is-invalid @enderror " name =" contract_id" value =" {{ old (' contract_id' ) } }" data-autocomplete = " contract_id " >
13161316
13171317 @error (' contract_id' )
13181318 <span class =" invalid-feedback" role =" alert" >
13481348 <label for =" contract_id" class =" col-md-4 col-form-label text-md-right" >{{ __ (' interface.data.contract_id' ) } } </label >
13491349
13501350 <div class =" col-md-8" >
1351- <input id =" contract_id" type =" number " class =" form-control @error (' contract_id' ) is-invalid @enderror " name =" contract_id" value =" {{ old (' contract_id' ) } }" >
1351+ <input id =" contract_id" type =" text " class =" form-control @error (' contract_id' ) is-invalid @enderror " name =" contract_id" value =" {{ old (' contract_id' ) } }" data-autocomplete = " contract_id " >
13521352
13531353 @error (' contract_id' )
13541354 <span class =" invalid-feedback" role =" alert" >
13611361 <label for =" invoice_id" class =" col-md-4 col-form-label text-md-right" >{{ __ (' interface.data.invoice_id' ) } } </label >
13621362
13631363 <div class =" col-md-8" >
1364- <input id =" invoice_id" type =" number " class =" form-control @error (' invoice_id' ) is-invalid @enderror " name =" invoice_id" value =" {{ old (' invoice_id' ) } }" >
1364+ <input id =" invoice_id" type =" text " class =" form-control @error (' invoice_id' ) is-invalid @enderror " name =" invoice_id" value =" {{ old (' invoice_id' ) } }" data-autocomplete = " invoice_id " >
13651365
13661366 @error (' invoice_id' )
13671367 <span class =" invalid-feedback" role =" alert" >
@@ -1561,6 +1561,14 @@ function initTableOptionRemovalClickListener(table) {
15611561 });
15621562 }
15631563 });
1564+
1565+ $ (' [data-autocomplete="contract_id"]' ).autocomplete ({
1566+ source: ' /admin/contracts/search?user_id={{ $user -> id } }' ,
1567+ });
1568+
1569+ $ (' [data-autocomplete="invoice_id"]' ).autocomplete ({
1570+ source: ' /admin/invoices/customers/search?user_id={{ $user -> id } }' ,
1571+ });
15641572 });
15651573 </script >
15661574@endsection
Original file line number Diff line number Diff line change 551551 <label for =" user_id" class =" col-md-4 col-form-label text-md-right" >{{ __ (' interface.data.user_id' ) } } </label >
552552
553553 <div class =" col-md-8" >
554- <input id =" user_id" type =" number " class =" form-control " name =" user_id" value =" {{ $invoice -> user_id } }" >
554+ <input id =" user_id" type =" text " class =" form-control " name =" user_id" value =" {{ $invoice -> user_id } }" data-autocomplete = " user_id " >
555555
556556 @error (' user_id' )
557557 <span class =" invalid-feedback" role =" alert" >
581581 <label for =" contract_id" class =" col-md-4 col-form-label text-md-right" >{{ __ (' interface.data.contract_id' ) } } </label >
582582
583583 <div class =" col-md-8" >
584- <input id =" contract_id" type =" number " class =" form-control " name =" contract_id" value =" {{ $invoice -> contract_id } }" >
584+ <input id =" contract_id" type =" text " class =" form-control " name =" contract_id" value =" {{ $invoice -> contract_id } }" data-autocomplete = " contract_id " >
585585
586586 @error (' contract_id' )
587587 <span class =" invalid-feedback" role =" alert" >
793793 ],
794794 order: [[0 , ' desc' ]],
795795 });
796+
797+ $ (' [data-autocomplete="user_id"]' ).autocomplete ({
798+ source: ' /admin/customers/search' ,
799+ });
800+
801+ $ (' [data-autocomplete="contract_id"]' ).autocomplete ({
802+ source: ' /admin/contracts/search' ,
803+ });
796804 });
797805 </script >
798806@endsection
Original file line number Diff line number Diff line change 5454 <label for =" user_id" class =" col-md-4 col-form-label text-md-right" >{{ __ (' interface.data.user_id' ) } } </label >
5555
5656 <div class =" col-md-8" >
57- <input id =" user_id" type =" number " class =" form-control @error (' user_id' ) is-invalid @enderror " name =" user_id" value =" {{ old (' user_id' ) } }" >
57+ <input id =" user_id" type =" text " class =" form-control @error (' user_id' ) is-invalid @enderror " name =" user_id" value =" {{ old (' user_id' ) } }" data-autocomplete = " user_id " >
5858
5959 @error (' user_id' )
6060 <span class =" invalid-feedback" role =" alert" >
8686 <label for =" contract_id" class =" col-md-4 col-form-label text-md-right" >{{ __ (' interface.data.contract_id' ) } } </label >
8787
8888 <div class =" col-md-8" >
89- <input id =" contract_id" type =" number " class =" form-control @error (' contract_id' ) is-invalid @enderror " name =" contract_id" value =" {{ old (' contract_id' ) } }" >
89+ <input id =" contract_id" type =" text " class =" form-control @error (' contract_id' ) is-invalid @enderror " name =" contract_id" value =" {{ old (' contract_id' ) } }" data-autocomplete = " contract_id " >
9090
9191 @error (' contract_id' )
9292 <span class =" invalid-feedback" role =" alert" >
126126 ],
127127 order: [[0 , ' desc' ]]
128128 });
129+
130+ $ (' [data-autocomplete="user_id"]' ).autocomplete ({
131+ source: ' /admin/customers/search' ,
132+ });
133+
134+ $ (' [data-autocomplete="contract_id"]' ).autocomplete ({
135+ source: ' /admin/contracts/search' ,
136+ });
129137 });
130138 </script >
131139@endsection
Original file line number Diff line number Diff line change 519519 <label for =" user_id" class =" col-md-4 col-form-label text-md-right" >{{ __ (' interface.data.user_id' ) } } </label >
520520
521521 <div class =" col-md-8" >
522- <input id =" user_id" type =" number " class =" form-control " name =" user_id" value =" {{ $invoice -> user_id } }" >
522+ <input id =" user_id" type =" text " class =" form-control " name =" user_id" value =" {{ $invoice -> user_id } }" data-autocomplete = " user_id " >
523523
524524 @error (' user_id' )
525525 <span class =" invalid-feedback" role =" alert" >
800800 ],
801801 order: [[0 , ' desc' ]],
802802 });
803+
804+ $ (' [data-autocomplete="user_id"]' ).autocomplete ({
805+ source: ' /admin/suppliers/search' ,
806+ });
803807 });
804808 </script >
805809@endsection
Original file line number Diff line number Diff line change 6868 <label for =" user_id" class =" col-md-4 col-form-label text-md-right" >{{ __ (' interface.data.user_id' ) } } </label >
6969
7070 <div class =" col-md-8" >
71- <input id =" user_id" type =" number " class =" form-control @error (' user_id' ) is-invalid @enderror " name =" user_id" value =" {{ old (' user_id' ) } }" >
71+ <input id =" user_id" type =" text " class =" form-control @error (' user_id' ) is-invalid @enderror " name =" user_id" value =" {{ old (' user_id' ) } }" data-autocomplete = " user_id " >
7272
7373 @error (' user_id' )
7474 <span class =" invalid-feedback" role =" alert" >
157157 ],
158158 order: [[0 , ' desc' ]]
159159 });
160+
161+ $ (' [data-autocomplete="user_id"]' ).autocomplete ({
162+ source: ' /admin/suppliers/search' ,
163+ });
160164 });
161165 </script >
162166@endsection
Original file line number Diff line number Diff line change 11631163 @csrf
11641164 <input id =" user_id" type =" hidden" name =" user_id" value =" {{ $user -> id } }" >
11651165 <div class =" modal-body" >
1166- <div class =" form-group row" >
1167- <label for =" contract_id" class =" col-md-4 col-form-label text-md-right" >{{ __ (' interface.data.contract_id' ) } } </label >
1168-
1169- <div class =" col-md-8" >
1170- <input id =" contract_id" type =" number" class =" form-control @error (' contract_id' ) is-invalid @enderror " name =" contract_id" value =" {{ old (' contract_id' ) } }" >
1171-
1172- @error (' contract_id' )
1173- <span class =" invalid-feedback" role =" alert" >
1174- <strong >{{ $message } } </strong >
1175- </span >
1176- @enderror
1177- </div >
1178- </div >
11791166 <div class =" form-group row" >
11801167 <label for =" invoice_id" class =" col-md-4 col-form-label text-md-right" >{{ __ (' interface.data.invoice_id' ) } } </label >
11811168
11821169 <div class =" col-md-8" >
1183- <input id =" invoice_id" type =" number " class =" form-control @error (' invoice_id' ) is-invalid @enderror " name =" invoice_id" value =" {{ old (' invoice_id' ) } }" >
1170+ <input id =" invoice_id" type =" text " class =" form-control @error (' invoice_id' ) is-invalid @enderror " name =" invoice_id" value =" {{ old (' invoice_id' ) } }" data-autocomplete = " invoice_id " >
11841171
11851172 @error (' invoice_id' )
11861173 <span class =" invalid-feedback" role =" alert" >
@@ -1327,6 +1314,10 @@ function initTableOptionRemovalClickListener(table) {
13271314 $ (this ).parent ().parent ().remove ();
13281315 });
13291316 }
1317+
1318+ $ (' [data-autocomplete="invoice_id"]' ).autocomplete ({
1319+ source: ' /admin/invoices/suppliers/search?user_id={{ $user -> id } }' ,
1320+ });
13301321 });
13311322 </script >
13321323@endsection
You can’t perform that action at this time.
0 commit comments