Add price taxed

This commit is contained in:
Ludovic CANDELLIER
2022-02-20 21:59:19 +01:00
parent ea53cb4c8a
commit c75f580ad2
2 changed files with 30 additions and 37 deletions

View File

@@ -1,34 +1,29 @@
<div class="row"> @component('components.card', ['title' => $tariff['name'] ?? null ])
<div class="col-4">
{{ $tariff['ref'] ?? null }}
</div>
<div class="col-8">
{{ $tariff['name'] ?? null }}
</div>
</div>
<div class="row">
<div class="col-12">
@foreach (($tariff['price_lists'] ?? []) as $price_list) @foreach (($tariff['price_lists'] ?? []) as $price_list)
{{ $price_list['sale_channel']['name'] }} <div class="row mb-3">
{{ $price_list['name'] }} <div class="col-12">
<b>Canal de vente</b> : {{ $price_list['sale_channel']['name'] }}<br>
<b>Nom de liste de prix </b> : {{ $price_list['name'] }}
@if ($price_list['price_list_values'] ?? false) @if ($price_list['price_list_values'] ?? false)
<table class="table table-bordered table-hover table-striped w-100"> <table class="table table-bordered table-hover table-striped w-100">
<thead> <thead>
<tr> <tr>
<th>Seuil</th> <th>Seuil</th>
<th>Prix</th> <th>Prix HT</th>
<th>Prix TTC</th>
</tr> </tr>
</thead> </thead>
@foreach (($price_list['price_list_values'] ?? []) as $price_value) @foreach (($price_list['price_list_values'] ?? []) as $price_value)
<tr> <tr>
<td>{{ $price_value['quantity'] }}</td> <td>{{ $price_value['quantity'] }}</td>
<td class="text-right">{{ $price_value['price'] }}</td> <td class="text-right">{{ $price_value['price'] }}</td>
<td class="text-right">{{ $price_value['price_taxed'] }}</td>
</tr> </tr>
@endforeach @endforeach
</table> </table>
@endif @endif
</div>
</div>
@endforeach @endforeach
</div> @endcomponent
</div>

View File

@@ -1,8 +1,6 @@
<div class="row"> <div class="row mb-3">
<div class="col-12"> <div class="col-12">
<h4>{{ $variation['name'] }}</h4>
{{ $variation['name'] }}
</div> </div>
</div> </div>