fix orders datatables on profile, fix deliveries for profile (public & active)

This commit is contained in:
Ludovic CANDELLIER
2023-08-29 22:15:37 +02:00
parent 043b7d7215
commit 01f9c9ae7c
10 changed files with 60 additions and 91 deletions

View File

@@ -5,7 +5,7 @@
@section('content')
@if ($basket)
<div class="row">
<div class="col-8">
<div class="col-lg-8 col-md-12">
<div class="row mb-3">
<div class="col-4">
<h1>Panier</h1>
@@ -27,7 +27,7 @@
</div>
@endforeach
</div>
<div class="col-4">
<div class="col-lg-4 col-md-12">
<x-card class='shadow'>
@include('Shop.Baskets.partials.basketTotal')
<div class="row m-3">
@@ -108,7 +108,7 @@
}
function calculateTotalShipped() {
var total_shipped = parseFloat($('#basket-total').html()) + 5;
var total_shipped = parseFloat($('#basket-total').html());
$('#basket-total-shipped').html(fixNumber(total_shipped));
}

View File

@@ -16,6 +16,7 @@
<span id="basket-total">{{ $basket['total'] ?? 0 }}</span>
</div>
</div>
<!--
<div class="row mb-3">
<div class="col-6">
LIVRAISON
@@ -25,11 +26,12 @@
</div>
</div>
<hr>
-->
<div class="row mb-3 font-weight-bold" style="font-size: 1.6em;">
<div class="col-6">
TOTAL TTC
</div>
<div class="col-6 text-right">
<span id="basket-total-shipped">{{ App\Repositories\Core\User\ShopCart::fixDecimal(($basket['total'] ?? 0) + 5) }}</span>
<span id="basket-total-shipped">{{ App\Repositories\Core\User\ShopCart::fixDecimal(($basket['total'] ?? 0)) }}</span>
</div>
</div>