mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00:00
30 lines
1.9 KiB
PHP
30 lines
1.9 KiB
PHP
@push('componentScripts')
|
|
<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>
|
|
@endpush
|
|
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<i class="fab fa-product-hunt"></i> {{ $L('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="{{ $L('Edit product') }}">
|
|
<i class="fas fa-edit"></i>
|
|
</a>
|
|
</div>
|
|
<div class="card-body">
|
|
<h3><span id="productcard-product-name"></span></h3>
|
|
<strong>{{ $L('Stock quantity unit') }}:</strong> <span id="productcard-product-stock-qu-name"></span><br>
|
|
<strong>{{ $L('Stock amount') }}:</strong> <span id="productcard-product-stock-amount"></span> <span id="productcard-product-stock-qu-name2"></span> <span id="productcard-product-stock-opened-amount" class="small font-italic"></span><br>
|
|
<strong>{{ $L('Last purchased') }}:</strong> <span id="productcard-product-last-purchased"></span> <time id="productcard-product-last-purchased-timeago" class="timeago timeago-contextual"></time><br>
|
|
<strong>{{ $L('Last used') }}:</strong> <span id="productcard-product-last-used"></span> <time id="productcard-product-last-used-timeago" class="timeago timeago-contextual"></time><br>
|
|
<strong>{{ $L('Last price') }}:</strong> <span id="productcard-product-last-price"></span>
|
|
|
|
<h5 class="mt-3">{{ $L('Product picture') }}</h5>
|
|
<img id="productcard-product-picture" src="" class="img-fluid img-thumbnail d-none">
|
|
<span id="productcard-no-product-picture" class="font-italic d-none">{{ $L('No picture available') }}</span>
|
|
|
|
<h5 class="mt-3">{{ $L('Price history') }}</h5>
|
|
<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">{{ $L('No price history available') }}</span>
|
|
</div>
|
|
</div>
|