@php
$id = 'stripe_enabled';
$name = 'stripe_enabled';
$label = 'Enable Stripe Gateway';
$value = '1';
$checked = old('stripe_enabled', $settings['stripe_enabled'] ?? '0') == '1';
$helpText = 'Toggle this to activate or deactivate the Stripe payment gateway.';
@endphp
@if($helpText)
{{ $helpText }}
@endif
@error($name)
{{ $message }}
@enderror
@error('stripe_publishable_key')
{{ $message }}
@enderror
Enter a new secret key to update it. Leave blank to keep the existing one.
@error('stripe_secret_key')
{{ $message }}
@enderror
Enter a new webhook secret to update it. Leave blank to keep the existing one.
@error('stripe_webhook_secret')
{{ $message }}
@enderror
@php
$id_mode = 'stripe_mode';
$name_mode = 'stripe_mode';
$label_mode = 'Stripe Mode';
$current_mode = old('stripe_mode', $settings['stripe_mode'] ?? 'test');
$options_mode = ['test' => 'Test', 'live' => 'Live'];
$helpText_mode = 'Select whether to use Stripe in Test or Live mode. Ensure keys match the selected mode.';
@endphp
@if($helpText_mode)
{{ $helpText_mode }}
@endif
@error($name_mode)
{{ $message }}
@enderror