2018-04-15 09:41:53 +02:00
|
|
|
@push('componentScripts')
|
2018-09-08 12:04:31 +02:00
|
|
|
<script src="{{ $U('/node_modules/chart.js/dist/Chart.min.js?v=', true) }}{{ $version }}"></script>
|
2018-06-15 20:50:40 +02:00
|
|
|
<script src="{{ $U('/viewjs/components/productcard.js', true) }}?v={{ $version }}"></script>
|
2018-04-15 09:41:53 +02:00
|
|
|
@endpush
|
2018-04-14 11:10:38 +02:00
|
|
|
|
2018-07-10 20:37:13 +02:00
|
|
|
<div class="card">
|
|
|
|
<div class="card-header">
|
2019-05-01 20:19:18 +02:00
|
|
|
<i class="fab fa-product-hunt"></i> {{ $__t('Product overview') }}
|
|
|
|
<a id="productcard-product-edit-button" class="btn btn-sm btn-outline-info py-0 float-right disabled" href="#" data-toggle="tooltip" title="{{ $__t('Edit product') }}">
|
2018-10-22 19:13:08 +02:00
|
|
|
<i class="fas fa-edit"></i>
|
|
|
|
</a>
|
2019-09-27 16:54:40 +02:00
|
|
|
<a id="productcard-product-journal-button" class="btn btn-sm btn-outline-secondary py-0 mr-2 float-right disabled show-as-dialog-link" href="#" data-toggle="tooltip" title="{{ $__t('Stock journal for this product') }}">
|
2019-09-27 14:19:06 +02:00
|
|
|
<i class="fas fa-file-alt"></i>
|
|
|
|
</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
|
|
|
|
|
|
|
<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>
|
2019-05-01 20:19:18 +02:00
|
|
|
<a class="collapsed" data-toggle="collapse" href="#productcard-product-description">{{ $__t('Show more') }}</a>
|
2019-04-22 10:11:58 +02:00
|
|
|
</div>
|
|
|
|
|
2019-09-26 15:25:30 +02:00
|
|
|
<strong>{{ $__t('Stock amount') . ' / ' . $__t('Quantity unit') }}:</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" class="small font-italic locale-number locale-number-quantity-amount"></span>
|
|
|
|
<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>
|
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
|
2019-05-01 20:19:18 +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
|
|
|
|
@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
|
|
|
|
2019-09-20 20:10:03 +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>
|
2018-07-26 20:27:38 +02:00
|
|
|
<canvas id="productcard-product-price-history-chart" class="w-100 d-none"></canvas>
|
2019-05-01 20:19:18 +02:00
|
|
|
<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>
|
2018-04-14 11:10:38 +02:00
|
|
|
</div>
|