fix: 🐛 Do not show "Payment Methods" if product is free
This commit is contained in:
parent
a077092631
commit
4449353f3a
|
@ -77,22 +77,25 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<!-- accepted payments column -->
|
<!-- accepted payments column -->
|
||||||
<div class="col-6">
|
<div class="col-6">
|
||||||
<p class="lead">{{ __('Payment Methods') }}:</p>
|
@if (!$productIsFree)
|
||||||
|
<p class="lead">{{ __('Payment Methods') }}:</p>
|
||||||
|
|
||||||
<div class="d-flex flex-wrap flex-direction-row">
|
<div class="d-flex flex-wrap flex-direction-row">
|
||||||
|
|
||||||
@foreach ($paymentGateways as $gateway)
|
@foreach ($paymentGateways as $gateway)
|
||||||
<div class="ml-2">
|
<div class="ml-2">
|
||||||
<label class="text-center" for="{{ $gateway->name }}">
|
<label class="text-center" for="{{ $gateway->name }}">
|
||||||
<img class="mb-3" height="50" src="{{ $gateway->image }}"></br>
|
<img class="mb-3" height="50"
|
||||||
<input x-on:click="console.log(payment_method)" x-model="payment_method"
|
src="{{ $gateway->image }}"></br>
|
||||||
type="radio" id="{{ $gateway->name }}"
|
<input x-on:click="console.log(payment_method)"
|
||||||
value="{{ $gateway->name }}">
|
x-model="payment_method" type="radio"
|
||||||
</input>
|
id="{{ $gateway->name }}" value="{{ $gateway->name }}">
|
||||||
</label>
|
</input>
|
||||||
</div>
|
</label>
|
||||||
@endforeach
|
</div>
|
||||||
</div>
|
@endforeach
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!-- /.col -->
|
<!-- /.col -->
|
||||||
|
|
Loading…
Reference in a new issue