<?php
    $activeTab = 'payments';
    $intro = 'Configure accepted payment methods, gateway credentials, customer messages, and invoice payment behavior.';
    $currencies = ['USD' => 'USD - US Dollar', 'EUR' => 'EUR - Euro', 'GBP' => 'GBP - British Pound', 'PKR' => 'PKR - Pakistani Rupee'];
    $secretConfigured = fn (string $key) => (bool) data_get($settings, '_secret_configured.'.$key, false);
?>

<?php $__env->startSection('content'); ?>
    <div class="space-y-5">
        <div class="flex flex-col gap-3 lg:flex-row lg:items-end lg:justify-between">
            <p class="max-w-3xl text-sm font-medium leading-6 text-booklio-muted"><?php echo e($intro); ?></p>
            <?php if (isset($component)) { $__componentOriginala8bb031a483a05f647cb99ed3a469847 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginala8bb031a483a05f647cb99ed3a469847 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.ui.button','data' => ['class' => 'w-full sm:w-auto','type' => 'submit','form' => 'payment-settings-form']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('ui.button'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'w-full sm:w-auto','type' => 'submit','form' => 'payment-settings-form']); ?>
                <?php if (isset($component)) { $__componentOriginal56804098dcf376a0e2227cb77b6cd00a = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal56804098dcf376a0e2227cb77b6cd00a = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.ui.icon','data' => ['name' => 'check','class' => 'h-4 w-4']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('ui.icon'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'check','class' => 'h-4 w-4']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal56804098dcf376a0e2227cb77b6cd00a)): ?>
<?php $attributes = $__attributesOriginal56804098dcf376a0e2227cb77b6cd00a; ?>
<?php unset($__attributesOriginal56804098dcf376a0e2227cb77b6cd00a); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal56804098dcf376a0e2227cb77b6cd00a)): ?>
<?php $component = $__componentOriginal56804098dcf376a0e2227cb77b6cd00a; ?>
<?php unset($__componentOriginal56804098dcf376a0e2227cb77b6cd00a); ?>
<?php endif; ?>
                <span>Save Payment Settings</span>
             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginala8bb031a483a05f647cb99ed3a469847)): ?>
<?php $attributes = $__attributesOriginala8bb031a483a05f647cb99ed3a469847; ?>
<?php unset($__attributesOriginala8bb031a483a05f647cb99ed3a469847); ?>
<?php endif; ?>
<?php if (isset($__componentOriginala8bb031a483a05f647cb99ed3a469847)): ?>
<?php $component = $__componentOriginala8bb031a483a05f647cb99ed3a469847; ?>
<?php unset($__componentOriginala8bb031a483a05f647cb99ed3a469847); ?>
<?php endif; ?>
        </div>

        <?php if(session('status')): ?>
            <div class="rounded-lg border border-emerald-200 bg-emerald-50 p-4 text-sm font-bold text-emerald-700">
                <?php echo e(session('status')); ?>

            </div>
        <?php endif; ?>

        <section class="grid gap-5 xl:grid-cols-[300px_minmax(0,1fr)]">
            <?php echo $__env->make('admin.settings.partials.nav', ['activeTab' => $activeTab], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

            <form id="payment-settings-form" method="POST" action="<?php echo e(route('admin.settings.payments.update')); ?>" class="min-w-0 space-y-5">
                <?php echo csrf_field(); ?>

                <?php if (isset($component)) { $__componentOriginaldae4cd48acb67888a4631e1ba48f2f93 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginaldae4cd48acb67888a4631e1ba48f2f93 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.ui.card','data' => ['title' => 'General Payment Settings','description' => 'These defaults affect invoices, checkout, receipts, and payment status messages.']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('ui.card'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['title' => 'General Payment Settings','description' => 'These defaults affect invoices, checkout, receipts, and payment status messages.']); ?>
                    <div class="grid gap-4 md:grid-cols-2">
                        <?php if (isset($component)) { $__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.select','data' => ['name' => 'general[default_currency]','field' => 'general.default_currency','label' => 'Default currency','value' => data_get($settings, 'general.default_currency'),'options' => $currencies]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.select'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'general[default_currency]','field' => 'general.default_currency','label' => 'Default currency','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(data_get($settings, 'general.default_currency')),'options' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($currencies)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36)): ?>
<?php $attributes = $__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36; ?>
<?php unset($__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36)): ?>
<?php $component = $__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36; ?>
<?php unset($__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36); ?>
<?php endif; ?>
                        <?php if (isset($component)) { $__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.select','data' => ['name' => 'general[currency_position]','field' => 'general.currency_position','label' => 'Currency position','value' => data_get($settings, 'general.currency_position'),'options' => ['before' => 'Before amount ($100)', 'after' => 'After amount (100 $)']]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.select'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'general[currency_position]','field' => 'general.currency_position','label' => 'Currency position','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(data_get($settings, 'general.currency_position')),'options' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(['before' => 'Before amount ($100)', 'after' => 'After amount (100 $)'])]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36)): ?>
<?php $attributes = $__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36; ?>
<?php unset($__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36)): ?>
<?php $component = $__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36; ?>
<?php unset($__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36); ?>
<?php endif; ?>
                        <div class="flex items-center justify-between gap-4 rounded-lg border border-booklio-border bg-slate-50 p-4">
                            <div>
                                <p class="text-sm font-extrabold text-booklio-dark">Enable tax</p>
                                <p class="mt-1 text-xs leading-5 text-booklio-muted">Apply default tax settings to new invoices.</p>
                            </div>
                            <label class="relative inline-flex shrink-0 cursor-pointer items-center">
                                <input type="checkbox" name="general[enable_tax]" value="1" <?php if(data_get($settings, 'general.enable_tax')): echo 'checked'; endif; ?> class="peer sr-only">
                                <span class="h-6 w-11 rounded-full bg-slate-300 transition peer-checked:bg-booklio-primary"></span>
                                <span class="absolute left-1 h-4 w-4 rounded-full bg-white transition peer-checked:translate-x-5"></span>
                            </label>
                        </div>
                        <?php if (isset($component)) { $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.input','data' => ['name' => 'general[tax_name]','field' => 'general.tax_name','label' => 'Tax name','value' => data_get($settings, 'general.tax_name')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'general[tax_name]','field' => 'general.tax_name','label' => 'Tax name','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(data_get($settings, 'general.tax_name'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?>
<?php $attributes = $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b; ?>
<?php unset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?>
<?php $component = $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b; ?>
<?php unset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b); ?>
<?php endif; ?>
                        <?php if (isset($component)) { $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.input','data' => ['name' => 'general[tax_percentage]','field' => 'general.tax_percentage','label' => 'Tax percentage','type' => 'number','step' => '0.01','min' => '0','max' => '100','value' => data_get($settings, 'general.tax_percentage')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'general[tax_percentage]','field' => 'general.tax_percentage','label' => 'Tax percentage','type' => 'number','step' => '0.01','min' => '0','max' => '100','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(data_get($settings, 'general.tax_percentage'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?>
<?php $attributes = $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b; ?>
<?php unset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?>
<?php $component = $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b; ?>
<?php unset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b); ?>
<?php endif; ?>
                        <?php if (isset($component)) { $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.input','data' => ['name' => 'general[invoice_due_days]','field' => 'general.invoice_due_days','label' => 'Invoice due days','type' => 'number','min' => '0','value' => data_get($settings, 'general.invoice_due_days')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'general[invoice_due_days]','field' => 'general.invoice_due_days','label' => 'Invoice due days','type' => 'number','min' => '0','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(data_get($settings, 'general.invoice_due_days'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?>
<?php $attributes = $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b; ?>
<?php unset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?>
<?php $component = $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b; ?>
<?php unset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b); ?>
<?php endif; ?>
                        <div class="md:col-span-2">
                            <?php if (isset($component)) { $__componentOriginalcd97a59301ba78d56b3ed60dd41409ab = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalcd97a59301ba78d56b3ed60dd41409ab = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.textarea','data' => ['name' => 'general[payment_success_message]','field' => 'general.payment_success_message','label' => 'Payment success message','value' => data_get($settings, 'general.payment_success_message'),'rows' => '3']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.textarea'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'general[payment_success_message]','field' => 'general.payment_success_message','label' => 'Payment success message','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(data_get($settings, 'general.payment_success_message')),'rows' => '3']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalcd97a59301ba78d56b3ed60dd41409ab)): ?>
<?php $attributes = $__attributesOriginalcd97a59301ba78d56b3ed60dd41409ab; ?>
<?php unset($__attributesOriginalcd97a59301ba78d56b3ed60dd41409ab); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalcd97a59301ba78d56b3ed60dd41409ab)): ?>
<?php $component = $__componentOriginalcd97a59301ba78d56b3ed60dd41409ab; ?>
<?php unset($__componentOriginalcd97a59301ba78d56b3ed60dd41409ab); ?>
<?php endif; ?>
                        </div>
                        <div class="md:col-span-2">
                            <?php if (isset($component)) { $__componentOriginalcd97a59301ba78d56b3ed60dd41409ab = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalcd97a59301ba78d56b3ed60dd41409ab = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.textarea','data' => ['name' => 'general[payment_failed_message]','field' => 'general.payment_failed_message','label' => 'Payment failed message','value' => data_get($settings, 'general.payment_failed_message'),'rows' => '3']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.textarea'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'general[payment_failed_message]','field' => 'general.payment_failed_message','label' => 'Payment failed message','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(data_get($settings, 'general.payment_failed_message')),'rows' => '3']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalcd97a59301ba78d56b3ed60dd41409ab)): ?>
<?php $attributes = $__attributesOriginalcd97a59301ba78d56b3ed60dd41409ab; ?>
<?php unset($__attributesOriginalcd97a59301ba78d56b3ed60dd41409ab); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalcd97a59301ba78d56b3ed60dd41409ab)): ?>
<?php $component = $__componentOriginalcd97a59301ba78d56b3ed60dd41409ab; ?>
<?php unset($__componentOriginalcd97a59301ba78d56b3ed60dd41409ab); ?>
<?php endif; ?>
                        </div>
                    </div>
                 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginaldae4cd48acb67888a4631e1ba48f2f93)): ?>
<?php $attributes = $__attributesOriginaldae4cd48acb67888a4631e1ba48f2f93; ?>
<?php unset($__attributesOriginaldae4cd48acb67888a4631e1ba48f2f93); ?>
<?php endif; ?>
<?php if (isset($__componentOriginaldae4cd48acb67888a4631e1ba48f2f93)): ?>
<?php $component = $__componentOriginaldae4cd48acb67888a4631e1ba48f2f93; ?>
<?php unset($__componentOriginaldae4cd48acb67888a4631e1ba48f2f93); ?>
<?php endif; ?>

                <div class="grid gap-5 xl:grid-cols-2">
                    <?php if (isset($component)) { $__componentOriginal088c824cc534a68059fc4d9c428ff73e = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal088c824cc534a68059fc4d9c428ff73e = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.settings.payment-gateway-card','data' => ['title' => 'Cash Payment','description' => 'Allow staff to record in-person cash payments against invoices and appointments.','icon' => 'wallet','enabled' => data_get($settings, 'cash.enabled'),'toggleName' => 'cash[enabled]','badge' => 'Manual']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('settings.payment-gateway-card'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['title' => 'Cash Payment','description' => 'Allow staff to record in-person cash payments against invoices and appointments.','icon' => 'wallet','enabled' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(data_get($settings, 'cash.enabled')),'toggle-name' => 'cash[enabled]','badge' => 'Manual']); ?>
                        <div class="grid gap-4">
                            <?php if (isset($component)) { $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.input','data' => ['name' => 'cash[display_name]','field' => 'cash.display_name','label' => 'Display name','value' => data_get($settings, 'cash.display_name')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'cash[display_name]','field' => 'cash.display_name','label' => 'Display name','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(data_get($settings, 'cash.display_name'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?>
<?php $attributes = $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b; ?>
<?php unset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?>
<?php $component = $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b; ?>
<?php unset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b); ?>
<?php endif; ?>
                            <?php if (isset($component)) { $__componentOriginalcd97a59301ba78d56b3ed60dd41409ab = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalcd97a59301ba78d56b3ed60dd41409ab = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.textarea','data' => ['name' => 'cash[instructions]','field' => 'cash.instructions','label' => 'Instructions','value' => data_get($settings, 'cash.instructions'),'rows' => '3']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.textarea'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'cash[instructions]','field' => 'cash.instructions','label' => 'Instructions','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(data_get($settings, 'cash.instructions')),'rows' => '3']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalcd97a59301ba78d56b3ed60dd41409ab)): ?>
<?php $attributes = $__attributesOriginalcd97a59301ba78d56b3ed60dd41409ab; ?>
<?php unset($__attributesOriginalcd97a59301ba78d56b3ed60dd41409ab); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalcd97a59301ba78d56b3ed60dd41409ab)): ?>
<?php $component = $__componentOriginalcd97a59301ba78d56b3ed60dd41409ab; ?>
<?php unset($__componentOriginalcd97a59301ba78d56b3ed60dd41409ab); ?>
<?php endif; ?>
                        </div>
                     <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal088c824cc534a68059fc4d9c428ff73e)): ?>
<?php $attributes = $__attributesOriginal088c824cc534a68059fc4d9c428ff73e; ?>
<?php unset($__attributesOriginal088c824cc534a68059fc4d9c428ff73e); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal088c824cc534a68059fc4d9c428ff73e)): ?>
<?php $component = $__componentOriginal088c824cc534a68059fc4d9c428ff73e; ?>
<?php unset($__componentOriginal088c824cc534a68059fc4d9c428ff73e); ?>
<?php endif; ?>

                    <?php if (isset($component)) { $__componentOriginal088c824cc534a68059fc4d9c428ff73e = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal088c824cc534a68059fc4d9c428ff73e = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.settings.payment-gateway-card','data' => ['title' => 'Bank Transfer','description' => 'Show bank details and optional payment proof instructions on invoices.','icon' => 'building-2','enabled' => data_get($settings, 'bank.enabled'),'toggleName' => 'bank[enabled]','badge' => 'Manual']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('settings.payment-gateway-card'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['title' => 'Bank Transfer','description' => 'Show bank details and optional payment proof instructions on invoices.','icon' => 'building-2','enabled' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(data_get($settings, 'bank.enabled')),'toggle-name' => 'bank[enabled]','badge' => 'Manual']); ?>
                        <div class="grid gap-4 md:grid-cols-2">
                            <?php if (isset($component)) { $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.input','data' => ['name' => 'bank[bank_name]','field' => 'bank.bank_name','label' => 'Bank name','value' => data_get($settings, 'bank.bank_name')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'bank[bank_name]','field' => 'bank.bank_name','label' => 'Bank name','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(data_get($settings, 'bank.bank_name'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?>
<?php $attributes = $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b; ?>
<?php unset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?>
<?php $component = $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b; ?>
<?php unset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b); ?>
<?php endif; ?>
                            <?php if (isset($component)) { $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.input','data' => ['name' => 'bank[account_holder_name]','field' => 'bank.account_holder_name','label' => 'Account holder name','value' => data_get($settings, 'bank.account_holder_name')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'bank[account_holder_name]','field' => 'bank.account_holder_name','label' => 'Account holder name','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(data_get($settings, 'bank.account_holder_name'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?>
<?php $attributes = $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b; ?>
<?php unset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?>
<?php $component = $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b; ?>
<?php unset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b); ?>
<?php endif; ?>
                            <?php if (isset($component)) { $__componentOriginal00c91df9dbe0d7b2fdedfa393146f35e = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal00c91df9dbe0d7b2fdedfa393146f35e = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.settings.secret-input','data' => ['name' => 'bank[account_number]','field' => 'bank.account_number','label' => 'Account number / IBAN','configured' => $secretConfigured('bank.account_number'),'help' => 'Stored encrypted. Leave blank to keep the current value.']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('settings.secret-input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'bank[account_number]','field' => 'bank.account_number','label' => 'Account number / IBAN','configured' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($secretConfigured('bank.account_number')),'help' => 'Stored encrypted. Leave blank to keep the current value.']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal00c91df9dbe0d7b2fdedfa393146f35e)): ?>
<?php $attributes = $__attributesOriginal00c91df9dbe0d7b2fdedfa393146f35e; ?>
<?php unset($__attributesOriginal00c91df9dbe0d7b2fdedfa393146f35e); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal00c91df9dbe0d7b2fdedfa393146f35e)): ?>
<?php $component = $__componentOriginal00c91df9dbe0d7b2fdedfa393146f35e; ?>
<?php unset($__componentOriginal00c91df9dbe0d7b2fdedfa393146f35e); ?>
<?php endif; ?>
                            <?php if (isset($component)) { $__componentOriginal00c91df9dbe0d7b2fdedfa393146f35e = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal00c91df9dbe0d7b2fdedfa393146f35e = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.settings.secret-input','data' => ['name' => 'bank[swift_bic]','field' => 'bank.swift_bic','label' => 'SWIFT/BIC','configured' => $secretConfigured('bank.swift_bic'),'help' => 'Stored encrypted. Leave blank to keep the current value.']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('settings.secret-input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'bank[swift_bic]','field' => 'bank.swift_bic','label' => 'SWIFT/BIC','configured' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($secretConfigured('bank.swift_bic')),'help' => 'Stored encrypted. Leave blank to keep the current value.']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal00c91df9dbe0d7b2fdedfa393146f35e)): ?>
<?php $attributes = $__attributesOriginal00c91df9dbe0d7b2fdedfa393146f35e; ?>
<?php unset($__attributesOriginal00c91df9dbe0d7b2fdedfa393146f35e); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal00c91df9dbe0d7b2fdedfa393146f35e)): ?>
<?php $component = $__componentOriginal00c91df9dbe0d7b2fdedfa393146f35e; ?>
<?php unset($__componentOriginal00c91df9dbe0d7b2fdedfa393146f35e); ?>
<?php endif; ?>
                            <?php if (isset($component)) { $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.input','data' => ['name' => 'bank[branch_name]','field' => 'bank.branch_name','label' => 'Branch name','value' => data_get($settings, 'bank.branch_name')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'bank[branch_name]','field' => 'bank.branch_name','label' => 'Branch name','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(data_get($settings, 'bank.branch_name'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?>
<?php $attributes = $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b; ?>
<?php unset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?>
<?php $component = $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b; ?>
<?php unset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b); ?>
<?php endif; ?>
                            <div class="flex items-center justify-between gap-4 rounded-lg border border-booklio-border bg-slate-50 p-4">
                                <div>
                                    <p class="text-sm font-extrabold text-booklio-dark">Upload payment proof</p>
                                    <p class="mt-1 text-xs leading-5 text-booklio-muted">Customer upload placeholder.</p>
                                </div>
                                <label class="relative inline-flex shrink-0 cursor-pointer items-center">
                                    <input type="checkbox" name="bank[upload_payment_proof]" value="1" <?php if(data_get($settings, 'bank.upload_payment_proof')): echo 'checked'; endif; ?> class="peer sr-only">
                                    <span class="h-6 w-11 rounded-full bg-slate-300 transition peer-checked:bg-booklio-primary"></span>
                                    <span class="absolute left-1 h-4 w-4 rounded-full bg-white transition peer-checked:translate-x-5"></span>
                                </label>
                            </div>
                            <div class="md:col-span-2">
                                <?php if (isset($component)) { $__componentOriginalcd97a59301ba78d56b3ed60dd41409ab = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalcd97a59301ba78d56b3ed60dd41409ab = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.textarea','data' => ['name' => 'bank[payment_instructions]','field' => 'bank.payment_instructions','label' => 'Payment instructions','value' => data_get($settings, 'bank.payment_instructions'),'rows' => '3']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.textarea'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'bank[payment_instructions]','field' => 'bank.payment_instructions','label' => 'Payment instructions','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(data_get($settings, 'bank.payment_instructions')),'rows' => '3']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalcd97a59301ba78d56b3ed60dd41409ab)): ?>
<?php $attributes = $__attributesOriginalcd97a59301ba78d56b3ed60dd41409ab; ?>
<?php unset($__attributesOriginalcd97a59301ba78d56b3ed60dd41409ab); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalcd97a59301ba78d56b3ed60dd41409ab)): ?>
<?php $component = $__componentOriginalcd97a59301ba78d56b3ed60dd41409ab; ?>
<?php unset($__componentOriginalcd97a59301ba78d56b3ed60dd41409ab); ?>
<?php endif; ?>
                            </div>
                        </div>
                     <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal088c824cc534a68059fc4d9c428ff73e)): ?>
<?php $attributes = $__attributesOriginal088c824cc534a68059fc4d9c428ff73e; ?>
<?php unset($__attributesOriginal088c824cc534a68059fc4d9c428ff73e); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal088c824cc534a68059fc4d9c428ff73e)): ?>
<?php $component = $__componentOriginal088c824cc534a68059fc4d9c428ff73e; ?>
<?php unset($__componentOriginal088c824cc534a68059fc4d9c428ff73e); ?>
<?php endif; ?>

                    <?php if (isset($component)) { $__componentOriginal088c824cc534a68059fc4d9c428ff73e = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal088c824cc534a68059fc4d9c428ff73e = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.settings.payment-gateway-card','data' => ['title' => 'Stripe Settings','description' => 'Accept online card payments through Stripe. Use test credentials until backend API wiring is ready.','icon' => 'credit-card','enabled' => data_get($settings, 'stripe.enabled'),'toggleName' => 'stripe[enabled]','badge' => 'Test / Live']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('settings.payment-gateway-card'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['title' => 'Stripe Settings','description' => 'Accept online card payments through Stripe. Use test credentials until backend API wiring is ready.','icon' => 'credit-card','enabled' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(data_get($settings, 'stripe.enabled')),'toggle-name' => 'stripe[enabled]','badge' => 'Test / Live']); ?>
                        <div class="grid gap-4 md:grid-cols-2">
                            <?php if (isset($component)) { $__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.select','data' => ['name' => 'stripe[mode]','field' => 'stripe.mode','label' => 'Mode','value' => data_get($settings, 'stripe.mode'),'options' => ['test' => 'Test', 'live' => 'Live']]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.select'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'stripe[mode]','field' => 'stripe.mode','label' => 'Mode','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(data_get($settings, 'stripe.mode')),'options' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(['test' => 'Test', 'live' => 'Live'])]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36)): ?>
<?php $attributes = $__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36; ?>
<?php unset($__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36)): ?>
<?php $component = $__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36; ?>
<?php unset($__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36); ?>
<?php endif; ?>
                            <?php if (isset($component)) { $__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.select','data' => ['name' => 'stripe[currency]','field' => 'stripe.currency','label' => 'Stripe currency','value' => data_get($settings, 'stripe.currency'),'options' => $currencies]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.select'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'stripe[currency]','field' => 'stripe.currency','label' => 'Stripe currency','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(data_get($settings, 'stripe.currency')),'options' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($currencies)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36)): ?>
<?php $attributes = $__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36; ?>
<?php unset($__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36)): ?>
<?php $component = $__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36; ?>
<?php unset($__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36); ?>
<?php endif; ?>
                            <div class="md:col-span-2">
                                <?php if (isset($component)) { $__componentOriginal00c91df9dbe0d7b2fdedfa393146f35e = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal00c91df9dbe0d7b2fdedfa393146f35e = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.settings.secret-input','data' => ['name' => 'stripe[publishable_key]','field' => 'stripe.publishable_key','label' => 'Stripe publishable key','configured' => $secretConfigured('stripe.publishable_key'),'help' => 'Stored encrypted in Booklio settings. Leave blank to keep current key.']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('settings.secret-input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'stripe[publishable_key]','field' => 'stripe.publishable_key','label' => 'Stripe publishable key','configured' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($secretConfigured('stripe.publishable_key')),'help' => 'Stored encrypted in Booklio settings. Leave blank to keep current key.']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal00c91df9dbe0d7b2fdedfa393146f35e)): ?>
<?php $attributes = $__attributesOriginal00c91df9dbe0d7b2fdedfa393146f35e; ?>
<?php unset($__attributesOriginal00c91df9dbe0d7b2fdedfa393146f35e); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal00c91df9dbe0d7b2fdedfa393146f35e)): ?>
<?php $component = $__componentOriginal00c91df9dbe0d7b2fdedfa393146f35e; ?>
<?php unset($__componentOriginal00c91df9dbe0d7b2fdedfa393146f35e); ?>
<?php endif; ?>
                            </div>
                            <div class="md:col-span-2">
                                <?php if (isset($component)) { $__componentOriginal00c91df9dbe0d7b2fdedfa393146f35e = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal00c91df9dbe0d7b2fdedfa393146f35e = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.settings.secret-input','data' => ['name' => 'stripe[secret_key]','field' => 'stripe.secret_key','label' => 'Stripe secret key','configured' => $secretConfigured('stripe.secret_key'),'help' => 'Never expose this value in frontend production.']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('settings.secret-input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'stripe[secret_key]','field' => 'stripe.secret_key','label' => 'Stripe secret key','configured' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($secretConfigured('stripe.secret_key')),'help' => 'Never expose this value in frontend production.']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal00c91df9dbe0d7b2fdedfa393146f35e)): ?>
<?php $attributes = $__attributesOriginal00c91df9dbe0d7b2fdedfa393146f35e; ?>
<?php unset($__attributesOriginal00c91df9dbe0d7b2fdedfa393146f35e); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal00c91df9dbe0d7b2fdedfa393146f35e)): ?>
<?php $component = $__componentOriginal00c91df9dbe0d7b2fdedfa393146f35e; ?>
<?php unset($__componentOriginal00c91df9dbe0d7b2fdedfa393146f35e); ?>
<?php endif; ?>
                            </div>
                            <div class="md:col-span-2">
                                <?php if (isset($component)) { $__componentOriginal00c91df9dbe0d7b2fdedfa393146f35e = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal00c91df9dbe0d7b2fdedfa393146f35e = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.settings.secret-input','data' => ['name' => 'stripe[webhook_secret]','field' => 'stripe.webhook_secret','label' => 'Stripe webhook secret','configured' => $secretConfigured('stripe.webhook_secret')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('settings.secret-input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'stripe[webhook_secret]','field' => 'stripe.webhook_secret','label' => 'Stripe webhook secret','configured' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($secretConfigured('stripe.webhook_secret'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal00c91df9dbe0d7b2fdedfa393146f35e)): ?>
<?php $attributes = $__attributesOriginal00c91df9dbe0d7b2fdedfa393146f35e; ?>
<?php unset($__attributesOriginal00c91df9dbe0d7b2fdedfa393146f35e); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal00c91df9dbe0d7b2fdedfa393146f35e)): ?>
<?php $component = $__componentOriginal00c91df9dbe0d7b2fdedfa393146f35e; ?>
<?php unset($__componentOriginal00c91df9dbe0d7b2fdedfa393146f35e); ?>
<?php endif; ?>
                            </div>
                            <div class="md:col-span-2">
                                <?php if (isset($component)) { $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.input','data' => ['name' => 'stripe[payment_description]','field' => 'stripe.payment_description','label' => 'Payment description','value' => data_get($settings, 'stripe.payment_description')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'stripe[payment_description]','field' => 'stripe.payment_description','label' => 'Payment description','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(data_get($settings, 'stripe.payment_description'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?>
<?php $attributes = $__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b; ?>
<?php unset($__attributesOriginal5c2a97ab476b69c1189ee85d1a95204b); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b)): ?>
<?php $component = $__componentOriginal5c2a97ab476b69c1189ee85d1a95204b; ?>
<?php unset($__componentOriginal5c2a97ab476b69c1189ee85d1a95204b); ?>
<?php endif; ?>
                            </div>
                        </div>
                        <div class="mt-5 flex flex-col gap-3 sm:flex-row sm:justify-end">
                            <?php if (isset($component)) { $__componentOriginala8bb031a483a05f647cb99ed3a469847 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginala8bb031a483a05f647cb99ed3a469847 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.ui.button','data' => ['variant' => 'secondary','type' => 'submit','formaction' => ''.e(route('admin.settings.payments.test', 'stripe')).'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('ui.button'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['variant' => 'secondary','type' => 'submit','formaction' => ''.e(route('admin.settings.payments.test', 'stripe')).'']); ?><span>Test Connection</span> <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginala8bb031a483a05f647cb99ed3a469847)): ?>
<?php $attributes = $__attributesOriginala8bb031a483a05f647cb99ed3a469847; ?>
<?php unset($__attributesOriginala8bb031a483a05f647cb99ed3a469847); ?>
<?php endif; ?>
<?php if (isset($__componentOriginala8bb031a483a05f647cb99ed3a469847)): ?>
<?php $component = $__componentOriginala8bb031a483a05f647cb99ed3a469847; ?>
<?php unset($__componentOriginala8bb031a483a05f647cb99ed3a469847); ?>
<?php endif; ?>
                            <?php if (isset($component)) { $__componentOriginala8bb031a483a05f647cb99ed3a469847 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginala8bb031a483a05f647cb99ed3a469847 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.ui.button','data' => ['type' => 'submit']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('ui.button'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['type' => 'submit']); ?><span>Save Stripe Settings</span> <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginala8bb031a483a05f647cb99ed3a469847)): ?>
<?php $attributes = $__attributesOriginala8bb031a483a05f647cb99ed3a469847; ?>
<?php unset($__attributesOriginala8bb031a483a05f647cb99ed3a469847); ?>
<?php endif; ?>
<?php if (isset($__componentOriginala8bb031a483a05f647cb99ed3a469847)): ?>
<?php $component = $__componentOriginala8bb031a483a05f647cb99ed3a469847; ?>
<?php unset($__componentOriginala8bb031a483a05f647cb99ed3a469847); ?>
<?php endif; ?>
                        </div>
                     <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal088c824cc534a68059fc4d9c428ff73e)): ?>
<?php $attributes = $__attributesOriginal088c824cc534a68059fc4d9c428ff73e; ?>
<?php unset($__attributesOriginal088c824cc534a68059fc4d9c428ff73e); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal088c824cc534a68059fc4d9c428ff73e)): ?>
<?php $component = $__componentOriginal088c824cc534a68059fc4d9c428ff73e; ?>
<?php unset($__componentOriginal088c824cc534a68059fc4d9c428ff73e); ?>
<?php endif; ?>

                    <?php if (isset($component)) { $__componentOriginal088c824cc534a68059fc4d9c428ff73e = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal088c824cc534a68059fc4d9c428ff73e = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.settings.payment-gateway-card','data' => ['title' => 'PayPal Settings','description' => 'Accept PayPal payments from customers using sandbox or live app credentials.','icon' => 'globe-2','enabled' => data_get($settings, 'paypal.enabled'),'toggleName' => 'paypal[enabled]','badge' => 'Sandbox / Live']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('settings.payment-gateway-card'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['title' => 'PayPal Settings','description' => 'Accept PayPal payments from customers using sandbox or live app credentials.','icon' => 'globe-2','enabled' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(data_get($settings, 'paypal.enabled')),'toggle-name' => 'paypal[enabled]','badge' => 'Sandbox / Live']); ?>
                        <div class="grid gap-4 md:grid-cols-2">
                            <?php if (isset($component)) { $__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.select','data' => ['name' => 'paypal[mode]','field' => 'paypal.mode','label' => 'Mode','value' => data_get($settings, 'paypal.mode'),'options' => ['sandbox' => 'Sandbox', 'live' => 'Live']]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.select'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'paypal[mode]','field' => 'paypal.mode','label' => 'Mode','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(data_get($settings, 'paypal.mode')),'options' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(['sandbox' => 'Sandbox', 'live' => 'Live'])]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36)): ?>
<?php $attributes = $__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36; ?>
<?php unset($__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36)): ?>
<?php $component = $__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36; ?>
<?php unset($__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36); ?>
<?php endif; ?>
                            <?php if (isset($component)) { $__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.select','data' => ['name' => 'paypal[currency]','field' => 'paypal.currency','label' => 'PayPal currency','value' => data_get($settings, 'paypal.currency'),'options' => $currencies]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form.select'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'paypal[currency]','field' => 'paypal.currency','label' => 'PayPal currency','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(data_get($settings, 'paypal.currency')),'options' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($currencies)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36)): ?>
<?php $attributes = $__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36; ?>
<?php unset($__attributesOriginal8cee41e4af1fe2df52d1d5acd06eed36); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36)): ?>
<?php $component = $__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36; ?>
<?php unset($__componentOriginal8cee41e4af1fe2df52d1d5acd06eed36); ?>
<?php endif; ?>
                            <div class="md:col-span-2">
                                <?php if (isset($component)) { $__componentOriginal00c91df9dbe0d7b2fdedfa393146f35e = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal00c91df9dbe0d7b2fdedfa393146f35e = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.settings.secret-input','data' => ['name' => 'paypal[client_id]','field' => 'paypal.client_id','label' => 'PayPal client ID','configured' => $secretConfigured('paypal.client_id')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('settings.secret-input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'paypal[client_id]','field' => 'paypal.client_id','label' => 'PayPal client ID','configured' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($secretConfigured('paypal.client_id'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal00c91df9dbe0d7b2fdedfa393146f35e)): ?>
<?php $attributes = $__attributesOriginal00c91df9dbe0d7b2fdedfa393146f35e; ?>
<?php unset($__attributesOriginal00c91df9dbe0d7b2fdedfa393146f35e); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal00c91df9dbe0d7b2fdedfa393146f35e)): ?>
<?php $component = $__componentOriginal00c91df9dbe0d7b2fdedfa393146f35e; ?>
<?php unset($__componentOriginal00c91df9dbe0d7b2fdedfa393146f35e); ?>
<?php endif; ?>
                            </div>
                            <div class="md:col-span-2">
                                <?php if (isset($component)) { $__componentOriginal00c91df9dbe0d7b2fdedfa393146f35e = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal00c91df9dbe0d7b2fdedfa393146f35e = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.settings.secret-input','data' => ['name' => 'paypal[client_secret]','field' => 'paypal.client_secret','label' => 'PayPal client secret','configured' => $secretConfigured('paypal.client_secret'),'help' => 'Stored encrypted. Backend gateway integration will use this later.']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('settings.secret-input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'paypal[client_secret]','field' => 'paypal.client_secret','label' => 'PayPal client secret','configured' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($secretConfigured('paypal.client_secret')),'help' => 'Stored encrypted. Backend gateway integration will use this later.']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal00c91df9dbe0d7b2fdedfa393146f35e)): ?>
<?php $attributes = $__attributesOriginal00c91df9dbe0d7b2fdedfa393146f35e; ?>
<?php unset($__attributesOriginal00c91df9dbe0d7b2fdedfa393146f35e); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal00c91df9dbe0d7b2fdedfa393146f35e)): ?>
<?php $component = $__componentOriginal00c91df9dbe0d7b2fdedfa393146f35e; ?>
<?php unset($__componentOriginal00c91df9dbe0d7b2fdedfa393146f35e); ?>
<?php endif; ?>
                            </div>
                            <div class="md:col-span-2">
                                <?php if (isset($component)) { $__componentOriginal00c91df9dbe0d7b2fdedfa393146f35e = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal00c91df9dbe0d7b2fdedfa393146f35e = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.settings.secret-input','data' => ['name' => 'paypal[webhook_id]','field' => 'paypal.webhook_id','label' => 'PayPal webhook ID','configured' => $secretConfigured('paypal.webhook_id')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('settings.secret-input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'paypal[webhook_id]','field' => 'paypal.webhook_id','label' => 'PayPal webhook ID','configured' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($secretConfigured('paypal.webhook_id'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal00c91df9dbe0d7b2fdedfa393146f35e)): ?>
<?php $attributes = $__attributesOriginal00c91df9dbe0d7b2fdedfa393146f35e; ?>
<?php unset($__attributesOriginal00c91df9dbe0d7b2fdedfa393146f35e); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal00c91df9dbe0d7b2fdedfa393146f35e)): ?>
<?php $component = $__componentOriginal00c91df9dbe0d7b2fdedfa393146f35e; ?>
<?php unset($__componentOriginal00c91df9dbe0d7b2fdedfa393146f35e); ?>
<?php endif; ?>
                            </div>
                        </div>
                        <div class="mt-5 flex flex-col gap-3 sm:flex-row sm:justify-end">
                            <?php if (isset($component)) { $__componentOriginala8bb031a483a05f647cb99ed3a469847 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginala8bb031a483a05f647cb99ed3a469847 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.ui.button','data' => ['variant' => 'secondary','type' => 'submit','formaction' => ''.e(route('admin.settings.payments.test', 'paypal')).'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('ui.button'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['variant' => 'secondary','type' => 'submit','formaction' => ''.e(route('admin.settings.payments.test', 'paypal')).'']); ?><span>Test Connection</span> <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginala8bb031a483a05f647cb99ed3a469847)): ?>
<?php $attributes = $__attributesOriginala8bb031a483a05f647cb99ed3a469847; ?>
<?php unset($__attributesOriginala8bb031a483a05f647cb99ed3a469847); ?>
<?php endif; ?>
<?php if (isset($__componentOriginala8bb031a483a05f647cb99ed3a469847)): ?>
<?php $component = $__componentOriginala8bb031a483a05f647cb99ed3a469847; ?>
<?php unset($__componentOriginala8bb031a483a05f647cb99ed3a469847); ?>
<?php endif; ?>
                            <?php if (isset($component)) { $__componentOriginala8bb031a483a05f647cb99ed3a469847 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginala8bb031a483a05f647cb99ed3a469847 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.ui.button','data' => ['type' => 'submit']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('ui.button'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['type' => 'submit']); ?><span>Save PayPal Settings</span> <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginala8bb031a483a05f647cb99ed3a469847)): ?>
<?php $attributes = $__attributesOriginala8bb031a483a05f647cb99ed3a469847; ?>
<?php unset($__attributesOriginala8bb031a483a05f647cb99ed3a469847); ?>
<?php endif; ?>
<?php if (isset($__componentOriginala8bb031a483a05f647cb99ed3a469847)): ?>
<?php $component = $__componentOriginala8bb031a483a05f647cb99ed3a469847; ?>
<?php unset($__componentOriginala8bb031a483a05f647cb99ed3a469847); ?>
<?php endif; ?>
                        </div>
                     <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal088c824cc534a68059fc4d9c428ff73e)): ?>
<?php $attributes = $__attributesOriginal088c824cc534a68059fc4d9c428ff73e; ?>
<?php unset($__attributesOriginal088c824cc534a68059fc4d9c428ff73e); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal088c824cc534a68059fc4d9c428ff73e)): ?>
<?php $component = $__componentOriginal088c824cc534a68059fc4d9c428ff73e; ?>
<?php unset($__componentOriginal088c824cc534a68059fc4d9c428ff73e); ?>
<?php endif; ?>
                </div>

                <?php if (isset($component)) { $__componentOriginaldae4cd48acb67888a4631e1ba48f2f93 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginaldae4cd48acb67888a4631e1ba48f2f93 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.ui.card','data' => ['title' => 'Future Gateway Placeholders','description' => 'These disabled cards reserve space for future marketplace-friendly payment integrations.']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('ui.card'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['title' => 'Future Gateway Placeholders','description' => 'These disabled cards reserve space for future marketplace-friendly payment integrations.']); ?>
                    <div class="grid gap-4 md:grid-cols-2 xl:grid-cols-5">
                        <?php $__currentLoopData = $futureGateways; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $gateway): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <div class="rounded-lg border border-dashed border-booklio-border bg-slate-50 p-4">
                                <div class="flex items-center justify-between gap-3">
                                    <span class="flex h-10 w-10 items-center justify-center rounded-lg bg-white text-slate-500 shadow-soft">
                                        <?php if (isset($component)) { $__componentOriginal56804098dcf376a0e2227cb77b6cd00a = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal56804098dcf376a0e2227cb77b6cd00a = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.ui.icon','data' => ['name' => 'plug','class' => 'h-5 w-5']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('ui.icon'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'plug','class' => 'h-5 w-5']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal56804098dcf376a0e2227cb77b6cd00a)): ?>
<?php $attributes = $__attributesOriginal56804098dcf376a0e2227cb77b6cd00a; ?>
<?php unset($__attributesOriginal56804098dcf376a0e2227cb77b6cd00a); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal56804098dcf376a0e2227cb77b6cd00a)): ?>
<?php $component = $__componentOriginal56804098dcf376a0e2227cb77b6cd00a; ?>
<?php unset($__componentOriginal56804098dcf376a0e2227cb77b6cd00a); ?>
<?php endif; ?>
                                    </span>
                                    <?php if (isset($component)) { $__componentOriginalab7baa01105b3dfe1e0cf1dfc58879b4 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalab7baa01105b3dfe1e0cf1dfc58879b4 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.ui.badge','data' => ['variant' => 'muted']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('ui.badge'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['variant' => 'muted']); ?>Coming soon <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalab7baa01105b3dfe1e0cf1dfc58879b4)): ?>
<?php $attributes = $__attributesOriginalab7baa01105b3dfe1e0cf1dfc58879b4; ?>
<?php unset($__attributesOriginalab7baa01105b3dfe1e0cf1dfc58879b4); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalab7baa01105b3dfe1e0cf1dfc58879b4)): ?>
<?php $component = $__componentOriginalab7baa01105b3dfe1e0cf1dfc58879b4; ?>
<?php unset($__componentOriginalab7baa01105b3dfe1e0cf1dfc58879b4); ?>
<?php endif; ?>
                                </div>
                                <h3 class="mt-4 text-sm font-extrabold text-booklio-dark"><?php echo e($gateway['name']); ?></h3>
                                <p class="mt-2 text-xs leading-5 text-booklio-muted"><?php echo e($gateway['description']); ?></p>
                                <button type="button" class="mt-4 h-9 w-full rounded-lg border border-booklio-border bg-white px-3 text-xs font-bold text-slate-600 shadow-soft">Configure later</button>
                            </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginaldae4cd48acb67888a4631e1ba48f2f93)): ?>
<?php $attributes = $__attributesOriginaldae4cd48acb67888a4631e1ba48f2f93; ?>
<?php unset($__attributesOriginaldae4cd48acb67888a4631e1ba48f2f93); ?>
<?php endif; ?>
<?php if (isset($__componentOriginaldae4cd48acb67888a4631e1ba48f2f93)): ?>
<?php $component = $__componentOriginaldae4cd48acb67888a4631e1ba48f2f93; ?>
<?php unset($__componentOriginaldae4cd48acb67888a4631e1ba48f2f93); ?>
<?php endif; ?>

                <?php if (isset($component)) { $__componentOriginaldae4cd48acb67888a4631e1ba48f2f93 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginaldae4cd48acb67888a4631e1ba48f2f93 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.ui.card','data' => ['title' => 'Security Notes','description' => 'Backend-ready safeguards for production payment settings.']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('ui.card'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['title' => 'Security Notes','description' => 'Backend-ready safeguards for production payment settings.']); ?>
                    <div class="grid gap-4 md:grid-cols-3">
                        <div class="rounded-lg bg-slate-50 p-4">
                            <p class="text-sm font-extrabold text-booklio-dark">Encrypted credentials</p>
                            <p class="mt-2 text-xs leading-5 text-booklio-muted">Stripe, PayPal, bank account, and webhook secrets are encrypted with Laravel Crypt before they are saved.</p>
                        </div>
                        <div class="rounded-lg bg-slate-50 p-4">
                            <p class="text-sm font-extrabold text-booklio-dark">No API calls yet</p>
                            <p class="mt-2 text-xs leading-5 text-booklio-muted">Test connection buttons save the form and return a placeholder message until real gateway SDKs are connected.</p>
                        </div>
                        <div class="rounded-lg bg-slate-50 p-4">
                            <p class="text-sm font-extrabold text-booklio-dark">Secret-safe UI</p>
                            <p class="mt-2 text-xs leading-5 text-booklio-muted">Configured secrets are never printed back into the page. Blank secret fields keep existing encrypted values.</p>
                        </div>
                    </div>
                 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginaldae4cd48acb67888a4631e1ba48f2f93)): ?>
<?php $attributes = $__attributesOriginaldae4cd48acb67888a4631e1ba48f2f93; ?>
<?php unset($__attributesOriginaldae4cd48acb67888a4631e1ba48f2f93); ?>
<?php endif; ?>
<?php if (isset($__componentOriginaldae4cd48acb67888a4631e1ba48f2f93)): ?>
<?php $component = $__componentOriginaldae4cd48acb67888a4631e1ba48f2f93; ?>
<?php unset($__componentOriginaldae4cd48acb67888a4631e1ba48f2f93); ?>
<?php endif; ?>

                <div class="flex flex-col gap-3 sm:flex-row sm:justify-end">
                    <?php if (isset($component)) { $__componentOriginala8bb031a483a05f647cb99ed3a469847 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginala8bb031a483a05f647cb99ed3a469847 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.ui.button','data' => ['variant' => 'secondary','href' => ''.e(route('admin.settings.payments')).'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('ui.button'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['variant' => 'secondary','href' => ''.e(route('admin.settings.payments')).'']); ?>Cancel <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginala8bb031a483a05f647cb99ed3a469847)): ?>
<?php $attributes = $__attributesOriginala8bb031a483a05f647cb99ed3a469847; ?>
<?php unset($__attributesOriginala8bb031a483a05f647cb99ed3a469847); ?>
<?php endif; ?>
<?php if (isset($__componentOriginala8bb031a483a05f647cb99ed3a469847)): ?>
<?php $component = $__componentOriginala8bb031a483a05f647cb99ed3a469847; ?>
<?php unset($__componentOriginala8bb031a483a05f647cb99ed3a469847); ?>
<?php endif; ?>
                    <?php if (isset($component)) { $__componentOriginala8bb031a483a05f647cb99ed3a469847 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginala8bb031a483a05f647cb99ed3a469847 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.ui.button','data' => ['type' => 'submit']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('ui.button'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['type' => 'submit']); ?>
                        <?php if (isset($component)) { $__componentOriginal56804098dcf376a0e2227cb77b6cd00a = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal56804098dcf376a0e2227cb77b6cd00a = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.ui.icon','data' => ['name' => 'check','class' => 'h-4 w-4']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('ui.icon'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'check','class' => 'h-4 w-4']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal56804098dcf376a0e2227cb77b6cd00a)): ?>
<?php $attributes = $__attributesOriginal56804098dcf376a0e2227cb77b6cd00a; ?>
<?php unset($__attributesOriginal56804098dcf376a0e2227cb77b6cd00a); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal56804098dcf376a0e2227cb77b6cd00a)): ?>
<?php $component = $__componentOriginal56804098dcf376a0e2227cb77b6cd00a; ?>
<?php unset($__componentOriginal56804098dcf376a0e2227cb77b6cd00a); ?>
<?php endif; ?>
                        <span>Save Payment Settings</span>
                     <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginala8bb031a483a05f647cb99ed3a469847)): ?>
<?php $attributes = $__attributesOriginala8bb031a483a05f647cb99ed3a469847; ?>
<?php unset($__attributesOriginala8bb031a483a05f647cb99ed3a469847); ?>
<?php endif; ?>
<?php if (isset($__componentOriginala8bb031a483a05f647cb99ed3a469847)): ?>
<?php $component = $__componentOriginala8bb031a483a05f647cb99ed3a469847; ?>
<?php unset($__componentOriginala8bb031a483a05f647cb99ed3a469847); ?>
<?php endif; ?>
                </div>
            </form>
        </section>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.admin', ['title' => 'Payment Settings', 'pageTitle' => 'Payment Settings', 'active' => 'settings'], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\Users\Dcodax\Documents\Booklio\resources\views/admin/settings/payments.blade.php ENDPATH**/ ?>