| 
									
										
										
										
											2021-07-05 22:49:51 +02:00
										 |  |  | @once | 
					
						
							| 
									
										
										
										
											2018-04-15 09:41:53 +02:00
										 |  |  | @push('componentScripts') | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | <script src="{{ $U('/node_modules/chart.js/dist/Chart.min.js?v=', true) }}{{ $version }}"></script> | 
					
						
							|  |  |  | <script src="{{ $U('/viewjs/components/productcard.js', true) }}?v={{ $version }}"></script> | 
					
						
							| 
									
										
										
										
											2018-04-15 09:41:53 +02:00
										 |  |  | @endpush | 
					
						
							| 
									
										
										
										
											2021-07-05 22:49:51 +02:00
										 |  |  | @endonce | 
					
						
							| 
									
										
										
										
											2018-04-14 11:10:38 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-01-27 19:00:49 +01:00
										 |  |  | <div class="card productcard"> | 
					
						
							| 
									
										
										
										
											2018-07-10 20:37:13 +02:00
										 |  |  | 	<div class="card-header"> | 
					
						
							| 
									
										
										
										
											2020-11-08 15:09:10 +01:00
										 |  |  | 		<span class="float-left">{{ $__t('Product overview') }}</span> | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 		<a id="productcard-product-edit-button" | 
					
						
							| 
									
										
										
										
											2020-11-14 11:59:49 +01:00
										 |  |  | 			class="btn btn-sm btn-outline-secondary py-0 float-right disabled" | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 			href="#" | 
					
						
							|  |  |  | 			data-toggle="tooltip" | 
					
						
							|  |  |  | 			title="{{ $__t('Edit product') }}"> | 
					
						
							| 
									
										
										
										
											2018-10-22 19:13:08 +02:00
										 |  |  | 			<i class="fas fa-edit"></i> | 
					
						
							|  |  |  | 		</a> | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 		<a id="productcard-product-journal-button" | 
					
						
							| 
									
										
										
										
											2020-11-08 15:09:10 +01:00
										 |  |  | 			class="btn btn-sm btn-outline-secondary py-0 mr-1 float-right disabled show-as-dialog-link" | 
					
						
							| 
									
										
										
										
											2020-11-14 11:59:49 +01:00
										 |  |  | 			href="#"> | 
					
						
							|  |  |  | 			{{ $__t('Stock journal') }} | 
					
						
							| 
									
										
										
										
											2019-09-27 14:19:06 +02:00
										 |  |  | 		</a> | 
					
						
							| 
									
										
										
										
											2020-10-20 13:14:25 -05:00
										 |  |  | 		<a id="productcard-product-stock-button" | 
					
						
							| 
									
										
										
										
											2020-11-14 11:59:49 +01:00
										 |  |  | 			class="btn btn-sm btn-outline-secondary py-0 mr-1 float-right disabled show-as-dialog-link" | 
					
						
							|  |  |  | 			href="#"> | 
					
						
							|  |  |  | 			{{ $__t('Stock entries') }} | 
					
						
							| 
									
										
										
										
											2020-10-20 13:14:25 -05:00
										 |  |  | 		</a> | 
					
						
							| 
									
										
										
										
											2018-07-10 20:37:13 +02:00
										 |  |  | 	</div> | 
					
						
							|  |  |  | 	<div class="card-body"> | 
					
						
							| 
									
										
										
										
											2018-07-11 19:43:05 +02:00
										 |  |  | 		<h3><span id="productcard-product-name"></span></h3> | 
					
						
							| 
									
										
										
										
											2019-04-22 10:11:58 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 		<div id="productcard-product-description-wrapper" | 
					
						
							|  |  |  | 			class="expandable-text mb-2 d-none"> | 
					
						
							|  |  |  | 			<p id="productcard-product-description" | 
					
						
							|  |  |  | 				class="text-muted collapse mb-0"></p> | 
					
						
							|  |  |  | 			<a class="collapsed" | 
					
						
							|  |  |  | 				data-toggle="collapse" | 
					
						
							|  |  |  | 				href="#productcard-product-description">{{ $__t('Show more') }}</a> | 
					
						
							| 
									
										
										
										
											2019-04-22 10:11:58 +02:00
										 |  |  | 		</div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 		<strong>{{ $__t('Stock amount') }}:</strong> <span id="productcard-product-stock-amount" | 
					
						
							|  |  |  | 			class="locale-number locale-number-quantity-amount"></span> <span id="productcard-product-stock-qu-name"></span> | 
					
						
							|  |  |  | 		<span id="productcard-product-stock-opened-amount" | 
					
						
							| 
									
										
										
										
											2020-11-19 18:41:09 +01:00
										 |  |  | 			class="small font-italic locale-number locale-number-quantity-amount"></span> | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 		<span id="productcard-aggregated-amounts" | 
					
						
							|  |  |  | 			class="pl-2 text-secondary d-none"><i class="fas fa-custom-sigma-sign"></i> <span id="productcard-product-stock-amount-aggregated" | 
					
						
							|  |  |  | 				class="locale-number locale-number-quantity-amount"></span> <span id="productcard-product-stock-qu-name-aggregated"></span> <span id="productcard-product-stock-opened-amount-aggregated locale-number locale-number-quantity-amount" | 
					
						
							|  |  |  | 				class="small font-italic"></span></span><br> | 
					
						
							| 
									
										
										
										
											2021-09-24 13:13:38 +02:00
										 |  |  | 		@if(GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING)<strong>{{ $__t('Stock value') }}:</strong> <span id="productcard-product-stock-value" | 
					
						
							|  |  |  | 			class="locale-number locale-number-currency"></span><br>@endif | 
					
						
							| 
									
										
										
										
											2019-12-19 12:48:36 -06:00
										 |  |  | 		@if(GROCY_FEATURE_FLAG_STOCK_LOCATION_TRACKING)<strong>{{ $__t('Default location') }}:</strong> <span id="productcard-product-location"></span><br>@endif | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 		<strong>{{ $__t('Last purchased') }}:</strong> <span id="productcard-product-last-purchased"></span> <time id="productcard-product-last-purchased-timeago" | 
					
						
							|  |  |  | 			class="timeago timeago-contextual"></time><br> | 
					
						
							|  |  |  | 		<strong>{{ $__t('Last used') }}:</strong> <span id="productcard-product-last-used"></span> <time id="productcard-product-last-used-timeago" | 
					
						
							|  |  |  | 			class="timeago timeago-contextual"></time><br> | 
					
						
							| 
									
										
										
										
											2019-09-19 17:46:52 +02:00
										 |  |  | 		@if(GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING)<strong>{{ $__t('Last price') }}:</strong> <span id="productcard-product-last-price"></span><br>@endif | 
					
						
							| 
									
										
										
										
											2020-08-17 14:47:33 -05:00
										 |  |  | 		@if (GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING)<strong>{{ $__t('Average price') }}:</strong> <span id="productcard-product-average-price"></span><br>@endif | 
					
						
							| 
									
										
										
										
											2019-09-19 17:46:52 +02:00
										 |  |  | 		@if (GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING)<strong>{{ $__t('Average shelf life') }}:</strong> <span id="productcard-product-average-shelf-life"></span><br>@endif | 
					
						
							| 
									
										
										
										
											2019-05-01 20:19:18 +02:00
										 |  |  | 		<strong>{{ $__t('Spoil rate') }}:</strong> <span id="productcard-product-spoil-rate"></span> | 
					
						
							| 
									
										
										
										
											2018-07-26 20:27:38 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 		<p class="w-75 mt-3 mx-auto"><img id="productcard-product-picture" | 
					
						
							|  |  |  | 				data-src="" | 
					
						
							|  |  |  | 				class="img-fluid img-thumbnail d-none lazy"></p> | 
					
						
							| 
									
										
										
										
											2018-10-01 20:20:50 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-09-19 17:46:52 +02:00
										 |  |  | 		@if(GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING) | 
					
						
							| 
									
										
										
										
											2019-05-01 20:19:18 +02:00
										 |  |  | 		<h5 class="mt-3">{{ $__t('Price history') }}</h5> | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 		<canvas id="productcard-product-price-history-chart" | 
					
						
							|  |  |  | 			class="w-100 d-none"></canvas> | 
					
						
							|  |  |  | 		<span id="productcard-no-price-data-hint" | 
					
						
							|  |  |  | 			class="font-italic d-none">{{ $__t('No price history available') }}</span> | 
					
						
							| 
									
										
										
										
											2019-09-19 17:46:52 +02:00
										 |  |  | 		@endif | 
					
						
							| 
									
										
										
										
											2018-07-10 20:37:13 +02:00
										 |  |  | 	</div> | 
					
						
							| 
									
										
										
										
											2021-06-24 22:46:47 +02:00
										 |  |  | </div> |