2018-04-11 19:49:35 +02:00
@ extends ( 'layout.default' )
2019-05-01 20:19:18 +02:00
@ section ( 'title' , $__t ( 'Shopping list' ))
2018-04-12 21:13:38 +02:00
@ section ( 'activeNav' , 'shoppinglist' )
@ section ( 'viewJsName' , 'shoppinglist' )
2018-09-24 13:02:52 +02:00
@ push ( 'pageScripts' )
2020-12-20 19:31:12 +01:00
< script src = "{{ $U ('/node_modules/bwip-js/dist/bwip-js-min.js?v=', true) }}{{ $version }}" ></ script >
2020-08-31 20:32:50 +02:00
< script src = "{{ $U ('/viewjs/purchase.js?v=', true) }}{{ $version }}" ></ script >
2018-09-24 13:02:52 +02:00
@ endpush
@ push ( 'pageStyles' )
2020-08-31 20:32:50 +02:00
< link href = "{{ $U ('/node_modules/animate.css/animate.min.css?v=', true) }}{{ $version }}"
rel = "stylesheet" >
2018-09-24 13:02:52 +02:00
@ endpush
2018-04-11 19:49:35 +02:00
@ section ( 'content' )
2020-01-24 22:05:08 +01:00
< div class = "row d-print-none hide-on-fullscreen-card" >
2019-09-20 20:14:47 +02:00
< div class = "col" >
2020-11-08 15:09:10 +01:00
< div class = "title-related-links" >
< h2 class = "title mr-2 order-0" >
@ yield ( 'title' )
</ h2 >
< div class = "float-right" >
< button class = "btn btn-outline-dark d-md-none mt-2 order-1 order-md-3"
type = "button"
data - toggle = "collapse"
data - target = "#table-filter-row" >
< i class = "fas fa-filter" ></ i >
</ button >
< button class = "btn btn-outline-dark d-md-none mt-2 order-1 order-md-3"
type = "button"
data - toggle = "collapse"
data - target = "#related-links" >
< i class = "fas fa-ellipsis-v" ></ i >
</ button >
</ div >
< div class = "related-links collapse d-md-flex order-2 width-xs-sm-100"
id = "related-links" >
2020-12-19 23:00:07 +01:00
@ if ( GROCY_FEATURE_FLAG_SHOPPINGLIST_MULTIPLE_LISTS )
2020-11-08 15:09:10 +01:00
< div class = "my-auto float-right" >
2020-11-17 19:11:02 +01:00
< select class = "custom-control custom-select custom-select-sm"
2020-08-31 20:32:50 +02:00
id = "selected-shopping-list" >
@ foreach ( $shoppingLists as $shoppingList )
< option @ if ( $shoppingList -> id == $selectedShoppingListId ) selected = "selected" @ endif value = "{{ $shoppingList->id }}" > {{ $shoppingList -> name }} </ option >
@ endforeach
</ select >
</ div >
2020-11-08 15:09:10 +01:00
< a class = "btn btn-outline-dark responsive-button m-1 mt-md-0 mb-md-0 float-right show-as-dialog-link"
href = "{{ $U ('/shoppinglist/new?embedded') }}" >
{{ $__t ( 'New shopping list' ) }}
</ a >
< a class = "btn btn-outline-dark responsive-button m-1 mt-md-0 mb-md-0 float-right show-as-dialog-link @if( $selectedShoppingListId == 1) disabled @endif"
href = "{{ $U ('/shoppinglist/' . $selectedShoppingListId . '?embedded') }}" >
{{ $__t ( 'Edit shopping list' ) }}
</ a >
< a id = "delete-selected-shopping-list"
class = "btn btn-outline-danger responsive-button m-1 mt-md-0 mb-md-0 float-right @if( $selectedShoppingListId == 1) disabled @endif"
href = "#" >
{{ $__t ( 'Delete shopping list' ) }}
</ a >
2020-12-19 23:00:07 +01:00
@ else
< input type = "hidden"
name = "selected-shopping-list"
id = "selected-shopping-list"
value = "1" >
@ endif
2020-11-08 15:09:10 +01:00
< a id = "print-shopping-list-button"
class = "btn btn-outline-dark responsive-button m-1 mt-md-0 mb-md-0 float-right"
href = "#" >
{{ $__t ( 'Print' ) }}
</ a >
2020-08-31 20:32:50 +02:00
</ div >
2020-04-19 08:51:02 -04:00
</ div >
2020-12-21 16:29:39 +01:00
< div id = "filter-container"
class = "border-top border-bottom my-2 py-1" >
2020-11-08 19:00:12 +01:00
< div id = "table-filter-row"
data - status - filter = "belowminstockamount"
2020-12-21 20:13:49 +01:00
class = "collapse normal-message status-filter-message responsive-button @if(!GROCY_FEATURE_FLAG_STOCK) d-none @else d-md-inline-block @endif" >< span class = "d-block d-md-none" > {{ count ( $missingProducts )}} < i class = "fas fa-exclamation-circle" ></ i ></ span >< span class = "d-none d-md-block" > {{ $__n ( count ( $missingProducts ), '%s product is below defined min. stock amount' , '%s products are below defined min. stock amount' ) }} </ span ></ div >
2020-11-08 19:00:12 +01:00
< div id = "related-links"
2020-11-10 18:11:33 +01:00
class = "float-right mt-1 collapse d-md-block" >
2020-10-31 18:37:10 +01:00
< a class = "btn btn-primary responsive-button btn-sm mb-1 show-as-dialog-link"
href = "{{ $U ('/shoppinglistitem/new?embedded&list=' . $selectedShoppingListId ) }}" >
{{ $__t ( 'Add item' ) }}
</ a >
< a id = "clear-shopping-list"
class = "btn btn-outline-danger btn-sm mb-1 responsive-button @if( $listItems->count () == 0) disabled @endif"
href = "#" >
{{ $__t ( 'Clear list' ) }}
</ a >
< a id = "add-all-items-to-stock-button"
class = "btn btn-outline-primary btn-sm mb-1 responsive-button @if(!GROCY_FEATURE_FLAG_STOCK) d-none @endif"
href = "#" >
{{ $__t ( 'Add all list items to stock' ) }}
</ a >
< a id = "add-products-below-min-stock-amount"
class = "btn btn-outline-primary btn-sm mb-1 responsive-button @if(!GROCY_FEATURE_FLAG_STOCK) d-none @endif"
href = "#" >
{{ $__t ( 'Add products that are below defined min. stock amount' ) }}
</ a >
2020-11-15 22:38:21 +01:00
< a id = "add-overdue-expired-products"
2020-10-31 18:37:10 +01:00
class = "btn btn-outline-primary btn-sm mb-1 responsive-button @if(!GROCY_FEATURE_FLAG_STOCK) d-none @endif"
href = "#" >
2020-11-15 22:38:21 +01:00
{{ $__t ( 'Add overdue/expired products' ) }}
2020-10-31 18:37:10 +01:00
</ a >
</ div >
</ div >
2019-09-20 20:14:47 +02:00
</ div >
</ div >
2020-11-08 15:09:10 +01:00
< div class = "row collapse d-md-flex d-print-none hide-on-fullscreen-card"
id = "table-filter-row" >
2020-04-19 08:51:02 -04:00
< div class = "col-xs-12 col-md-5" >
2020-10-31 18:37:10 +01:00
< div class = "input-group" >
2020-04-19 08:51:02 -04:00
< div class = "input-group-prepend" >
2020-08-31 20:32:50 +02:00
< span class = "input-group-text" >< i class = "fas fa-search" ></ i ></ span >
2020-04-19 08:51:02 -04:00
</ div >
2020-08-31 20:32:50 +02:00
< input type = "text"
id = "search"
class = "form-control"
placeholder = "{{ $__t ('Search') }}" >
2020-04-19 08:51:02 -04:00
</ div >
</ div >
< div class = "col-xs-12 col-md-4 col-lg-5" >
2020-10-31 18:37:10 +01:00
< div class = "input-group" >
2020-04-19 08:51:02 -04:00
< div class = "input-group-prepend" >
2020-10-31 18:37:10 +01:00
< span class = "input-group-text" >< i class = "fas fa-filter" ></ i >& nbsp ;{{ $__t ( 'Status' ) }} </ span >
2020-04-19 08:51:02 -04:00
</ div >
2020-11-16 19:10:29 +01:00
< select class = "custom-control custom-select"
2020-08-31 20:32:50 +02:00
id = "status-filter" >
2020-04-19 08:51:02 -04:00
< option value = "all" > {{ $__t ( 'All' ) }} </ option >
2020-10-14 22:58:26 +02:00
< option class = "@if(!GROCY_FEATURE_FLAG_STOCK) d-none @endif"
value = "belowminstockamount" > {{ $__t ( 'Below min. stock amount' ) }} </ option >
2020-04-19 08:51:02 -04:00
< option value = "xxUNDONExx" > {{ $__t ( 'Only undone items' ) }} </ option >
</ select >
</ div >
</ div >
2020-11-07 14:53:45 +01:00
< div class = "col" >
< div class = "float-right" >
< a id = "clear-filter-button"
class = "btn btn-sm btn-outline-info"
href = "#" >
{{ $__t ( 'Clear filter' ) }}
</ a >
</ div >
</ div >
2018-09-24 19:13:53 +02:00
</ div >
2018-07-09 19:27:22 +02:00
2020-08-31 20:32:50 +02:00
< div id = "shoppinglist-main"
class = "row d-print-none" >
2020-02-01 12:54:05 +01:00
< div class = "@if(boolval( $userSettings['shopping_list_show_calendar'] )) col-xs-12 col-md-8 @else col-12 @endif pb-3" >
2020-08-31 20:32:50 +02:00
< table id = "shoppinglist-table"
2020-11-07 14:53:45 +01:00
class = "table table-sm table-striped nowrap w-100" >
2018-07-10 20:37:13 +02:00
< thead >
< tr >
2020-11-11 22:28:05 +01:00
< th class = "border-right" >< a class = "text-muted change-table-columns-visibility-button"
data - toggle = "tooltip"
2020-11-11 21:11:17 +01:00
data - toggle = "tooltip"
2020-12-16 18:18:03 +01:00
title = "{{ $__t ('Table options') }}"
2020-11-11 21:11:17 +01:00
data - table - selector = "#shoppinglist-table"
href = "#" >< i class = "fas fa-eye" ></ i ></ a >
</ th >
2019-05-01 20:19:18 +02:00
< th > {{ $__t ( 'Product' ) }} / < em > {{ $__t ( 'Note' ) }} </ em ></ th >
< th > {{ $__t ( 'Amount' ) }} </ th >
2020-12-16 18:18:03 +01:00
< th > {{ $__t ( 'Product group' ) }} </ th >
2018-09-24 19:13:53 +02:00
< th class = "d-none" > Hidden status </ th >
2020-12-19 17:55:49 +01:00
< th class = "@if(!GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING) d-none @endif" > {{ $__t ( 'Last price (Unit)' ) }} </ th >
< th class = "@if(!GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING) d-none @endif" > {{ $__t ( 'Last price (Total)' ) }} </ th >
2020-12-20 10:26:02 +01:00
< th class = "@if(!GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING) d-none @endif" > {{ $__t ( 'Default store' ) }} </ th >
2020-12-20 19:31:12 +01:00
< th > {{ $__t ( 'Barcodes' ) }} </ th >
2019-09-17 19:39:55 +02:00
@ include ( 'components.userfields_thead' , array (
2020-08-31 20:32:50 +02:00
'userfields' => $userfields
2019-09-17 19:39:55 +02:00
))
2020-11-17 19:11:02 +01:00
@ include ( 'components.userfields_thead' , array (
'userfields' => $productUserfields
))
2019-09-17 19:39:55 +02:00
2018-07-10 20:37:13 +02:00
</ tr >
</ thead >
2019-01-05 20:06:35 +01:00
< tbody class = "d-none" >
2018-07-10 20:37:13 +02:00
@ foreach ( $listItems as $listItem )
2020-08-31 20:32:50 +02:00
< tr id = "shoppinglistitem-{{ $listItem->id }}-row"
class = "@if(FindObjectInArrayByPropertyValue( $missingProducts , 'id', $listItem->product_id ) !== null) table-info @endif @if( $listItem->done == 1) text-muted text-strike-through @endif" >
2019-03-09 10:49:26 +01:00
< td class = "fit-content border-right" >
2020-08-31 20:32:50 +02:00
< a class = "btn btn-success btn-sm order-listitem-button"
href = "#"
2019-07-06 17:56:59 +02:00
data - item - id = "{{ $listItem->id }}"
2020-04-13 18:26:53 +02:00
data - item - done = "{{ $listItem->done }}"
2020-08-31 20:32:50 +02:00
data - toggle = "tooltip"
data - placement = "right"
title = "{{ $__t ('Mark this item as done') }}" >
2019-07-06 17:56:59 +02:00
< i class = "fas fa-check" ></ i >
</ a >
2020-10-29 11:09:35 -05:00
< a class = "btn btn-sm btn-info show-as-dialog-link"
href = "{{ $U ('/shoppinglistitem/' . $listItem->id . '?embedded&list=' . $selectedShoppingListId ) }}"
2020-08-31 20:32:50 +02:00
data - toggle = "tooltip"
data - placement = "right"
title = "{{ $__t ('Edit this item') }}" >
2018-07-11 19:43:05 +02:00
< i class = "fas fa-edit" ></ i >
2018-07-10 20:37:13 +02:00
</ a >
2020-08-31 20:32:50 +02:00
< a class = "btn btn-sm btn-danger shoppinglist-delete-button"
href = "#"
data - shoppinglist - id = "{{ $listItem->id }}"
data - toggle = "tooltip"
data - placement = "right"
title = "{{ $__t ('Delete this item') }}" >
2018-07-11 19:43:05 +02:00
< i class = "fas fa-trash" ></ i >
2018-07-10 20:37:13 +02:00
</ a >
2020-10-14 17:48:37 +02:00
< a class = "btn btn-sm btn-primary @if(!GROCY_FEATURE_FLAG_STOCK) d-none @endif @if(empty( $listItem->product_id )) disabled @else shopping-list-stock-add-workflow-list-item-button @endif"
2020-11-13 17:30:57 +01:00
href = "{{ $U ('/purchase?embedded&flow=shoppinglistitemtostock&product=') }}{{ $listItem->product_id }}&amount={{ $listItem->amount }}&listitemid={{ $listItem->id }}&quId={{ $listItem->qu_id }}"
2020-12-20 10:44:19 +01:00
@ if ( ! empty ( $listItem -> product_id )) data - toggle = "tooltip" title = "{{ $__t ('Add %1 $s of %2 $s to stock', $listItem->amount . ' ' . $__n ( $listItem->amount , $listItem->qu_name , $listItem->qu_name_plural ), $listItem->product_name , $listItem->amount ) }}" @ endif >
2018-11-14 21:40:17 +01:00
< i class = "fas fa-box" ></ i >
</ a >
2018-07-10 20:37:13 +02:00
</ td >
2020-10-20 13:14:11 -05:00
< td class = "product-name-cell cursor-link"
data - product - id = "{{ $listItem->product_id }}" >
2020-12-20 10:44:19 +01:00
@ if ( ! empty ( $listItem -> product_id )) {{ $listItem -> product_name }} < br >@ endif < em > { !! nl2br ( $listItem -> note ) !! } </ em >
2018-07-10 20:37:13 +02:00
</ td >
2020-12-17 17:33:24 +01:00
@ if ( ! empty ( $listItem -> product_id ))
@ php
$listItem -> amount_origin_qu = $listItem -> amount ;
$product = FindObjectInArrayByPropertyValue ( $products , 'id' , $listItem -> product_id );
$productQuConversions = FindAllObjectsInArrayByPropertyValue ( $quantityUnitConversionsResolved , 'product_id' , $product -> id );
$productQuConversions = FindAllObjectsInArrayByPropertyValue ( $productQuConversions , 'from_qu_id' , $product -> qu_id_stock );
$productQuConversion = FindObjectInArrayByPropertyValue ( $productQuConversions , 'to_qu_id' , $listItem -> qu_id );
if ( $productQuConversion )
{
$listItem -> amount = $listItem -> amount * $productQuConversion -> factor ;
}
@ endphp
@ endif
< td data - order = {{ $listItem -> amount }} >
2020-12-20 10:44:19 +01:00
< span class = "locale-number locale-number-quantity-amount" > {{ $listItem -> amount }} </ span > @ if ( ! empty ( $listItem -> product_id )){{ $__n ( $listItem -> amount , $listItem -> qu_name , $listItem -> qu_name_plural ) }} @ endif
2018-07-10 20:37:13 +02:00
</ td >
2020-12-16 18:18:03 +01:00
< td >
2020-12-20 10:44:19 +01:00
@ if ( ! empty ( $listItem -> product_group_name )) {{ $listItem -> product_group_name }} @ else < span class = "font-italic font-weight-light" > {{ $__t ( 'Ungrouped' ) }} </ span > @ endif
2018-09-24 13:02:52 +02:00
</ td >
2020-08-31 20:32:50 +02:00
< td id = "shoppinglistitem-{{ $listItem->id }}-status-info"
class = "d-none" >
2018-09-24 19:13:53 +02:00
@ if ( FindObjectInArrayByPropertyValue ( $missingProducts , 'id' , $listItem -> product_id ) !== null ) belowminstockamount @ endif
2020-01-24 22:26:36 +01:00
@ if ( $listItem -> done != 1 ) xxUNDONExx @ endif
2018-09-24 19:13:53 +02:00
</ td >
2020-12-19 17:55:49 +01:00
< td class = "@if(!GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING) d-none @endif" >
< span class = "locale-number locale-number-currency" > {{ $listItem -> last_price_unit }} </ span >
</ td >
< td class = "@if(!GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING) d-none @endif" >
< span class = "locale-number locale-number-currency" > {{ $listItem -> last_price_total }} </ span >
</ td >
2020-12-20 10:26:02 +01:00
< td class = "@if(!GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING) d-none @endif" >
{{ $listItem -> default_shopping_location_name }}
</ td >
2020-12-20 19:31:12 +01:00
< td >
@ foreach ( explode ( ',' , $listItem -> product_barcodes ) as $barcode )
@ if ( ! empty ( $barcode ))
< img class = "barcode img-fluid pr-2"
data - barcode = "{{ $barcode }}" >
@ endif
@ endforeach
</ td >
2019-09-17 19:39:55 +02:00
@ include ( 'components.userfields_tbody' , array (
2020-08-31 20:32:50 +02:00
'userfields' => $userfields ,
2020-11-17 19:11:02 +01:00
'userfieldValues' => FindAllObjectsInArrayByPropertyValue ( $userfieldValues , 'object_id' , $listItem -> id )
))
@ include ( 'components.userfields_tbody' , array (
'userfields' => $productUserfields ,
2020-08-31 20:32:50 +02:00
'userfieldValues' => FindAllObjectsInArrayByPropertyValue ( $userfieldValues , 'object_id' , $listItem -> product_id )
2019-09-17 19:39:55 +02:00
))
2018-07-10 20:37:13 +02:00
</ tr >
@ endforeach
</ tbody >
</ table >
</ div >
2018-07-13 22:38:31 +02:00
2020-02-01 12:54:05 +01:00
@ if ( boolval ( $userSettings [ 'shopping_list_show_calendar' ]))
2019-09-20 17:40:45 +02:00
< div class = "col-xs-12 col-md-4 mt-md-2 d-print-none" >
2018-07-13 22:38:31 +02:00
@ include ( 'components.calendarcard' )
</ div >
2020-02-01 12:54:05 +01:00
@ endif
2018-11-17 14:50:52 +01:00
2020-02-01 12:54:05 +01:00
< div class = "@if(boolval( $userSettings['shopping_list_show_calendar'] )) col-xs-12 col-md-8 @else col-12 @endif d-print-none pt-2" >
2019-09-20 18:08:38 +02:00
< div class = "form-group" >
2020-08-31 20:32:50 +02:00
< label class = "text-larger font-weight-bold"
for = "notes" > {{ $__t ( 'Notes' ) }} </ label >
< a id = "save-description-button"
class = "btn btn-success btn-sm ml-1 mb-2"
href = "#" > {{ $__t ( 'Save' ) }} </ a >
< a id = "clear-description-button"
class = "btn btn-danger btn-sm ml-1 mb-2"
href = "#" > {{ $__t ( 'Clear' ) }} </ a >
< textarea class = "form-control wysiwyg-editor"
id = "description"
name = "description" > {{ FindObjectInArrayByPropertyValue ( $shoppingLists , 'id' , $selectedShoppingListId ) -> description }} </ textarea >
2019-09-20 18:08:38 +02:00
</ div >
</ div >
</ div >
2020-08-31 20:32:50 +02:00
< div class = "modal fade"
id = "shopping-list-stock-add-workflow-modal"
tabindex = "-1" >
2018-11-17 14:50:52 +01:00
< div class = "modal-dialog" >
< div class = "modal-content text-center" >
< div class = "modal-body" >
2020-08-31 20:32:50 +02:00
< iframe id = "shopping-list-stock-add-workflow-purchase-form-frame"
class = "embed-responsive"
src = "" ></ iframe >
2018-11-17 14:50:52 +01:00
</ div >
2018-11-18 14:19:50 +01:00
< div class = "modal-footer" >
2020-08-31 20:32:50 +02:00
< span id = "shopping-list-stock-add-workflow-purchase-item-count"
class = "d-none mr-auto" ></ span >
< button id = "shopping-list-stock-add-workflow-skip-button"
type = "button"
class = "btn btn-primary" >< i class = "fas fa-angle-double-right" ></ i > {{ $__t ( 'Skip' ) }} </ button >
< button type = "button"
class = "btn btn-secondary"
data - dismiss = "modal" > {{ $__t ( 'Close' ) }} </ button >
2018-11-17 14:50:52 +01:00
</ div >
</ div >
</ div >
</ div >
2019-09-20 17:40:45 +02:00
< div class = "d-none d-print-block" >
2020-12-20 16:02:33 +01:00
< div id = "print-header" >
< h1 class = "text-center" >
< img src = "{{ $U ('/img/grocy_logo.svg?v=', true) }}{{ $version }}"
height = "30"
class = "d-print-flex mx-auto" >
{{ $__t ( "Shopping list" ) }}
2020-12-19 23:57:33 +01:00
</ h1 >
@ if ( FindObjectInArrayByPropertyValue ( $shoppingLists , 'id' , $selectedShoppingListId ) -> name != $__t ( "Shopping list" ))
< h3 class = "text-center" >
{{ FindObjectInArrayByPropertyValue ( $shoppingLists , 'id' , $selectedShoppingListId ) -> name }}
</ h3 >
@ endif
< h6 class = "text-center mb-4" >
{{ $__t ( 'Time of printing' ) }} :
< span class = "d-inline print-timestamp" ></ span >
</ h6 >
</ div >
< div class = "w-75 print-layout-type-table d-none" >
< div >
< table id = "shopping-list-print-shadow-table"
class = "table table-sm table-striped nowrap" >
2019-09-20 17:40:45 +02:00
< thead >
< tr >
< th > {{ $__t ( 'Product' ) }} / < em > {{ $__t ( 'Note' ) }} </ em ></ th >
< th > {{ $__t ( 'Amount' ) }} </ th >
2020-12-19 23:57:33 +01:00
< th > {{ $__t ( 'Product group' ) }} </ th >
2020-04-12 14:39:11 +02:00
@ include ( 'components.userfields_thead' , array (
2020-08-31 20:32:50 +02:00
'userfields' => $userfields
2020-04-12 14:39:11 +02:00
))
2019-09-20 17:40:45 +02:00
</ tr >
</ thead >
< tbody >
@ foreach ( $listItems as $listItem )
< tr >
< td >
2020-12-20 10:44:19 +01:00
@ if ( ! empty ( $listItem -> product_id )) {{ $listItem -> product_name }} < br >@ endif < em > { !! nl2br ( $listItem -> note ) !! } </ em >
2019-09-20 17:40:45 +02:00
</ td >
< td >
2020-12-20 10:44:19 +01:00
< span class = "locale-number locale-number-quantity-amount" > {{ $listItem -> amount }} </ span > @ if ( ! empty ( $listItem -> product_id )){{ $__n ( $listItem -> amount , $listItem -> qu_name , $listItem -> qu_name_plural ) }} @ endif
2019-09-20 17:40:45 +02:00
</ td >
2020-12-19 23:57:33 +01:00
< td >
2020-12-20 10:44:19 +01:00
@ if ( ! empty ( $listItem -> product_group_name )) {{ $listItem -> product_group_name }} @ else < span class = "font-italic font-weight-light" > {{ $__t ( 'Ungrouped' ) }} </ span > @ endif
2020-12-19 23:57:33 +01:00
</ td >
2020-04-12 14:39:11 +02:00
@ include ( 'components.userfields_tbody' , array (
2020-08-31 20:32:50 +02:00
'userfields' => $userfields ,
'userfieldValues' => FindAllObjectsInArrayByPropertyValue ( $userfieldValues , 'object_id' , $listItem -> product_id )
2020-04-12 14:39:11 +02:00
))
2019-09-20 17:40:45 +02:00
</ tr >
@ endforeach
</ tbody >
</ table >
</ div >
</ div >
2020-12-19 23:57:33 +01:00
< div class = "w-75 print-layout-type-list d-none" >
@ foreach ( $listItems as $listItem )
< div class = "py-0" >
2020-12-20 10:44:19 +01:00
< span class = "locale-number locale-number-quantity-amount" > {{ $listItem -> amount }} </ span > @ if ( ! empty ( $listItem -> product_id )){{ $__n ( $listItem -> amount , $listItem -> qu_name , $listItem -> qu_name_plural ) }} @ endif
@ if ( ! empty ( $listItem -> product_id )) {{ $listItem -> product_name }} < br >@ endif < em > { !! nl2br ( $listItem -> note ) !! } </ em >
2020-12-19 23:57:33 +01:00
</ div >< br >
@ endforeach
</ div >
< div class = "w-75 pt-3" >
< div >
2019-09-20 18:08:38 +02:00
< h5 > {{ $__t ( 'Notes' ) }} </ h5 >
< p id = "description-for-print" ></ p >
</ div >
</ div >
2019-09-20 17:40:45 +02:00
</ div >
2020-10-20 13:14:11 -05:00
< div class = "modal fade"
id = "shoppinglist-productcard-modal"
tabindex = "-1" >
< div class = "modal-dialog" >
< div class = "modal-content text-center" >
< div class = "modal-body" >
@ include ( 'components.productcard' )
</ div >
< div class = "modal-footer" >
< button type = "button"
class = "btn btn-secondary"
data - dismiss = "modal" > {{ $__t ( 'Close' ) }} </ button >
</ div >
</ div >
</ div >
</ div >
2020-12-20 19:31:12 +01:00
@ stop