@props([ 'plan', 'period' => 'monthly', 'qty' => 1, 'label' => 'Subscribe', 'active' => false, ]) @php $href = pricing()->subscribeUrl($plan, $period, $qty); $baseClass = 'text-white bg-gradient-to-br from-green-400 to-blue-600 hover:bg-gradient-to-bl focus:ring-4 focus:outline-none focus:ring-green-200 dark:focus:ring-green-800 font-medium rounded-lg text-sm px-5 py-2.5 text-center mr-2 mb-2 mt-2 inline-flex justify-center w-full'; @endphp @if ($active) merge(['class' => $baseClass.' cursor-not-allowed opacity-75']) }} disabled>{{ $label }} @else merge(['class' => $baseClass]) }}>{{ $label }} @endif