2018-04-11 19:49:35 +02:00
@ extends ( 'layout.default' )
2018-04-16 19:11:32 +02:00
@ section ( 'title' , $L ( 'Purchase' ))
2018-04-12 21:13:38 +02:00
@ section ( 'activeNav' , 'purchase' )
@ section ( 'viewJsName' , 'purchase' )
2018-04-11 19:49:35 +02:00
@ section ( 'content' )
2018-04-14 11:10:38 +02:00
< div class = " col-sm-4 col-sm-offset-3 col-md-3 col-md-offset-2 " >
2017-04-21 12:30:08 +02:00
2018-04-16 19:11:32 +02:00
< h1 class = " page-header " >@ yield ( 'title' ) </ h1 >
2017-04-15 23:16:20 +02:00
< form id = " purchase-form " >
2017-04-19 21:09:28 +02:00
2017-04-15 23:16:20 +02:00
< div class = " form-group " >
2018-04-16 19:11:32 +02:00
< label for = " product_id " > {{ $L ( 'Product' ) }} & nbsp ; & nbsp ; < i class = " fa fa-barcode " ></ i >< span id = " barcode-lookup-disabled-hint " class = " small text-muted hide " >& nbsp ; & nbsp ; Barcode lookup is disabled </ span ></ label >
2017-04-15 23:16:20 +02:00
< select class = " form-control combobox " id = " product_id " name = " product_id " required >
< option value = " " ></ option >
2018-04-12 21:13:38 +02:00
@ foreach ( $products as $product )
< option data - additional - searchdata = " { { $product->barcode }} " value = " { { $product->id }} " > {{ $product -> name }} </ option >
@ endforeach
2017-04-15 23:16:20 +02:00
</ select >
< div class = " help-block with-errors " ></ div >
2017-04-20 22:01:14 +02:00
< div id = " flow-info-addbarcodetoselection " class = " text-muted small hide " >< strong >< span id = " addbarcodetoselection " ></ span ></ strong > will be added to the list of barcodes for the selected product on submit .</ div >
2017-04-15 23:16:20 +02:00
</ div >
2017-04-19 21:09:28 +02:00
2018-04-15 09:41:53 +02:00
@ include ( 'components.datepicker' , array (
'id' => 'best_before_date' ,
'label' => 'Best before'
))
2017-04-19 21:09:28 +02:00
2017-04-17 16:51:49 +02:00
< div class = " form-group " >
2018-04-16 19:11:32 +02:00
< label for = " amount " > {{ $L ( 'Amount' ) }} & nbsp ; & nbsp ; < span id = " amount_qu_unit " class = " small text-muted " ></ span ></ label >
2017-04-17 16:51:49 +02:00
< input type = " number " class = " form-control " id = " amount " name = " amount " value = " 1 " min = " 1 " required >
< div class = " help-block with-errors " ></ div >
</ div >
2017-04-19 21:09:28 +02:00
2018-04-16 19:11:32 +02:00
< button id = " save-purchase-button " type = " submit " class = " btn btn-default " > {{ $L ( 'OK' ) }} </ button >
2017-04-19 21:09:28 +02:00
2017-04-15 23:16:20 +02:00
</ form >
2017-04-21 19:02:00 +02:00
2017-04-15 23:16:20 +02:00
</ div >
2018-04-14 11:10:38 +02:00
< div class = " col-sm-6 col-md-5 col-lg-3 " >
@ include ( 'components.productcard' )
2017-04-19 21:09:28 +02:00
</ div >
2018-04-11 19:49:35 +02:00
@ stop