add shipping to order, methods to calculate, little refactoring
This commit is contained in:
@@ -1,3 +1,28 @@
|
||||
@foreach ($delivery_types as $delivery_type)
|
||||
|
||||
@endforeach
|
||||
@if ($delivery_types ?? false)
|
||||
<table class="">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="3">
|
||||
Choix du transporteur
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@foreach ($delivery_types as $delivery_type_id => $delivery_type)
|
||||
<tr>
|
||||
<td>
|
||||
@include('components.form.radios.icheck', [
|
||||
'name' => 'delivery_type_id',
|
||||
'val' => $delivery_type_id,
|
||||
'check' => false,
|
||||
])
|
||||
</td>
|
||||
<td>
|
||||
{{ $delivery_type['name'] }}
|
||||
</td>
|
||||
<td class="text-right">
|
||||
{{ $delivery_type['price'] }} €
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
@endif
|
||||
|
||||
Reference in New Issue
Block a user