Wrap quantity if per_seat_enabled

This commit is contained in:
Benjamin Beganović 2021-03-22 13:24:58 +01:00
parent 0c8dc5d822
commit 546619a498

View File

@ -20,25 +20,27 @@
@endif @endif
</div> </div>
<div class="flex mt-4 space-x-4 items-center"> @if($billing_subscription->per_seat_enabled)
<span class="text-sm">{{ ctrans('texts.qty') }}</span> <div class="flex mt-4 space-x-4 items-center">
<button wire:click="updateQuantity('decrement')" class="bg-gray-100 border rounded p-1"> <span class="text-sm">{{ ctrans('texts.qty') }}</span>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" <button wire:click="updateQuantity('decrement')" class="bg-gray-100 border rounded p-1">
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none"
class="feather feather-minus"> stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
<line x1="5" y1="12" x2="19" y2="12"></line> class="feather feather-minus">
</svg> <line x1="5" y1="12" x2="19" y2="12"></line>
</button> </svg>
<button>{{ $quantity }}</button> </button>
<button wire:click="updateQuantity('increment')" class="bg-gray-100 border rounded p-1"> <button>{{ $quantity }}</button>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" <button wire:click="updateQuantity('increment')" class="bg-gray-100 border rounded p-1">
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none"
class="feather feather-plus"> stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
<line x1="12" y1="5" x2="12" y2="19"></line> class="feather feather-plus">
<line x1="5" y1="12" x2="19" y2="12"></line> <line x1="12" y1="5" x2="12" y2="19"></line>
</svg> <line x1="5" y1="12" x2="19" y2="12"></line>
</button> </svg>
</div> </button>
</div>
@endif
@if(auth('contact')->user()) @if(auth('contact')->user())
<a href="{{ route('client.invoices.index') }}" class="block mt-16 inline-flex items-center space-x-2"> <a href="{{ route('client.invoices.index') }}" class="block mt-16 inline-flex items-center space-x-2">