Files
Sistema-Educativo-Laravel/vendor/laravel/cashier-paddle/resources/views/components/button.blade.php
T

23 lines
675 B
PHP

<?php
$transaction = $checkout->getTransaction();
$items = $checkout->getItems();
$customer = $checkout->getCustomer();
$custom = $checkout->getCustomData();
?>
<a
href='#!'
@if ($transaction)
data-transaction-id='{{ $transaction['id'] }}'
@else
data-items='{!! json_encode($items) !!}'
@endif
data-allow-logout='false'
@if ($customer) data-customer-id='{{ $customer->paddle_id }}' @endif
@if ($custom) data-custom-data='{{ json_encode($custom) }}' @endif
@if ($returnUrl = $checkout->getReturnUrl()) data-success-url='{{ $returnUrl }}' @endif
{{ $attributes->merge(['class' => 'paddle_button']) }}
>
{{ $slot }}
</a>