mirror of
https://github.com/grocy/grocy.git
synced 2025-08-28 17:10:11 +00:00
Load all frontend packages conditionally
This commit is contained in:
@@ -1,17 +1,13 @@
|
||||
@php require_frontend_packages(['datatables', 'summernote', 'animatecss', 'bwipjs']); @endphp
|
||||
|
||||
@extends('layout.default')
|
||||
|
||||
@section('title', $__t('Shopping list'))
|
||||
|
||||
@push('pageScripts')
|
||||
<script src="{{ $U('/node_modules/bwip-js/dist/bwip-js-min.js?v=', true) }}{{ $version }}"></script>
|
||||
<script src="{{ $U('/viewjs/purchase.js?v=', true) }}{{ $version }}"></script>
|
||||
@endpush
|
||||
|
||||
@push('pageStyles')
|
||||
<link href="{{ $U('/node_modules/animate.css/animate.min.css?v=', true) }}{{ $version }}"
|
||||
rel="stylesheet">
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
<div class="row d-print-none hide-on-fullscreen-card">
|
||||
<div class="col">
|
||||
@@ -270,12 +266,14 @@
|
||||
{{ $listItem->default_shopping_location_name }}
|
||||
</td>
|
||||
<td>
|
||||
@if($listItem->product_barcodes != null)
|
||||
@foreach(explode(',', $listItem->product_barcodes) as $barcode)
|
||||
@if(!empty($barcode))
|
||||
<img class="barcode img-fluid pr-2"
|
||||
data-barcode="{{ $barcode }}">
|
||||
@endif
|
||||
@endforeach
|
||||
@endif
|
||||
</td>
|
||||
|
||||
@include('components.userfields_tbody', array(
|
||||
|
Reference in New Issue
Block a user