Compare commits
2 Commits
e4497e2d3c
...
2c7ab7305e
Author | SHA1 | Date |
---|---|---|
Benjamin Völkl | 2c7ab7305e | |
Benjamin Völkl | 6764ac52cf |
|
@ -0,0 +1 @@
|
|||
.idea
|
|
@ -2,8 +2,6 @@
|
|||
<project version="4">
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="63513c45-0a61-435e-8541-3831c195f7c0" name="Changes" comment="">
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/content/includes/footer.blade.php" beforeDir="false" afterPath="$PROJECT_DIR$/content/includes/footer.blade.php" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/content/master.blade.php" beforeDir="false" afterPath="$PROJECT_DIR$/content/master.blade.php" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
|
|
|
@ -136,7 +136,38 @@
|
|||
}
|
||||
$(window).on('load', function(){
|
||||
if(localStorage.getItem("products") != null) objProducts = JSON.parse(localStorage.getItem("products"));
|
||||
<<<<<<< HEAD
|
||||
$.get("{{url('/contents/all')}}/"+objProducts.join(","), function(response, status){
|
||||
$('#count-products-in-bag').text(response.contents.length);
|
||||
if(response.contents.length > 0) response.contents.forEach(function(item){
|
||||
$('#list-products-in-bag').append(`
|
||||
<tr>
|
||||
<td class="text-start">
|
||||
<img class="rounded img-fluid" src="https://picsum.photos/120/120">
|
||||
</td>
|
||||
<td class="text-start">
|
||||
<span class="fs-5">${item.title}</span>
|
||||
<br>
|
||||
<small class="text-success">sofort verfügbar</small>
|
||||
<br>
|
||||
<select class="form-select form-select-sm" style="width:120px;" aria-label="Default select example">
|
||||
<option selected value="1">Anzahl: 1</option>
|
||||
<option value="2">Anzahl: 2</option>
|
||||
<option value="3">Anzahl: 3</option>
|
||||
</select>
|
||||
<a href="" class="text-muted small text-decoration-none">Löschen</a>
|
||||
ds
|
||||
</td>
|
||||
<td class="align-middle text-end">18,00€
|
||||
<br>
|
||||
</td>
|
||||
</tr>`);
|
||||
});
|
||||
else $('#count-products-in-bag').hide();
|
||||
});
|
||||
=======
|
||||
updateProductsInLocalStorage();
|
||||
>>>>>>> e4497e2d3c22ce5756190e6ee74fbeb1d9d09fad
|
||||
});
|
||||
</script>
|
||||
@yield('scripts')
|
||||
|
|
Loading…
Reference in New Issue