<div>
     <?php $__env->slot('title', null, []); ?> 
        <?php echo e(t('payment_gateway_settings')); ?>

     <?php $__env->endSlot(); ?>


    <div class="space-y-6 max-w-6xl mx-auto">
        <?php if (isset($component)) { $__componentOriginale19f62b34dfe0bfdf95075badcb45bc2 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginale19f62b34dfe0bfdf95075badcb45bc2 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.breadcrumb','data' => ['items' => [
        ['label' => t('dashboard'), 'route' => route('admin.dashboard')],
        ['label' => t('payment_gateway_settings')],
    ]]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('breadcrumb'); ?>
<?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(['items' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute([
        ['label' => t('dashboard'), 'route' => route('admin.dashboard')],
        ['label' => t('payment_gateway_settings')],
    ])]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginale19f62b34dfe0bfdf95075badcb45bc2)): ?>
<?php $attributes = $__attributesOriginale19f62b34dfe0bfdf95075badcb45bc2; ?>
<?php unset($__attributesOriginale19f62b34dfe0bfdf95075badcb45bc2); ?>
<?php endif; ?>
<?php if (isset($__componentOriginale19f62b34dfe0bfdf95075badcb45bc2)): ?>
<?php $component = $__componentOriginale19f62b34dfe0bfdf95075badcb45bc2; ?>
<?php unset($__componentOriginale19f62b34dfe0bfdf95075badcb45bc2); ?>
<?php endif; ?>
        <?php
        $settings = get_batch_settings(['payment.offline_enabled', 'payment.stripe_enabled',
        'payment.razorpay_enabled', 'payment.paypal_enabled', 'payment.paystack_enabled']);
        // Ensure all keys exist to prevent undefined array key errors
        $settings = array_merge([
        'payment.offline_enabled' => false,
        'payment.stripe_enabled' => false,
        'payment.razorpay_enabled' => false,
        'payment.paypal_enabled' => false,
        'payment.paystack_enabled' => false,
        ], $settings);
        ?>

        <?php if (isset($component)) { $__componentOriginal53747ceb358d30c0105769f8471417f6 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal53747ceb358d30c0105769f8471417f6 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.card','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('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([]); ?>
             <?php $__env->slot('header', null, []); ?> 
                <div class="flex items-center space-x-4">
                    <div class="flex-shrink-0">
                        <div class="w-10 h-10 bg-primary-100  rounded-full flex items-center justify-center">
                            <?php if (isset($component)) { $__componentOriginal643fe1b47aec0b76658e1a0200b34b2c = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal643fe1b47aec0b76658e1a0200b34b2c = $attributes; } ?>
<?php $component = BladeUI\Icons\Components\Svg::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('heroicon-m-bars-arrow-up'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\BladeUI\Icons\Components\Svg::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'w-5 h-5 text-primary-600']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal643fe1b47aec0b76658e1a0200b34b2c)): ?>
<?php $attributes = $__attributesOriginal643fe1b47aec0b76658e1a0200b34b2c; ?>
<?php unset($__attributesOriginal643fe1b47aec0b76658e1a0200b34b2c); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal643fe1b47aec0b76658e1a0200b34b2c)): ?>
<?php $component = $__componentOriginal643fe1b47aec0b76658e1a0200b34b2c; ?>
<?php unset($__componentOriginal643fe1b47aec0b76658e1a0200b34b2c); ?>
<?php endif; ?>
                        </div>
                    </div>
                    <div>
                        <h2 class="text-xl font-semibold text-gray-900 dark:text-white flex items-center">
                            <?php echo e(t('payment_gateway_settings')); ?>

                        </h2>
                        <div class="mt-1 text-sm text-gray-600 dark:text-gray-400 flex items-center">
                            <?php echo e(t('configure_and_manage_payment_gateway')); ?>

                        </div>
                    </div>
                </div>
             <?php $__env->endSlot(); ?>
             <?php $__env->slot('content', null, []); ?> 
                <!-- Payment Methods Grid -->
                <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
                    <!-- Offline Payment -->
                    <a href="<?php echo e(route('admin.settings.payment.offline')); ?>" class="group relative">
                        <div
                            class="block p-6 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl hover:border-info-500 dark:hover:border-info-500 transition-all duration-200 shadow-sm hover:shadow-md">
                            <div class="flex items-center">
                                <div class="shrink-0">
                                    <div class="relative">
                                        <div
                                            class="w-12 h-12 bg-info-100 dark:bg-info-900/50 rounded-lg flex items-center justify-center">
                                            <svg class="w-6 h-6 text-info-600 dark:text-info-400" fill="none"
                                                viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
                                                <path stroke-linecap="round" stroke-linejoin="round"
                                                    d="M2.25 18.75a60.07 60.07 0 0115.797 2.101c.727.198 1.453-.342 1.453-1.096V18.75M3.75 4.5v.75A.75.75 0 013 6h-.75m0 0v-.375c0-.621.504-1.125 1.125-1.125H20.25M2.25 6v9m18-10.5v.75c0 .414.336.75.75.75h.75m-1.5-1.5h.375c.621 0 1.125.504 1.125 1.125v9.75c0 .621-.504 1.125-1.125 1.125h-.375m1.5-1.5H21a.75.75 0 00-.75.75v.75m0 0H3.75m0 0h-.375a1.125 1.125 0 01-1.125-1.125V15m1.5 1.5v-.75A.75.75 0 003 15h-.75M15 10.5a3 3 0 11-6 0 3 3 0 016 0zm3 0h.008v.008H18V10.5zm-12 0h.008v.008H6V10.5z" />
                                            </svg>
                                        </div>

                                        <span
                                            class="absolute -top-1 -right-1 h-3 w-3 rounded-full  border-2 border-white dark:border-gray-800 <?php echo e($settings['payment.offline_enabled'] ? 'bg-success-400' : 'bg-gray-200'); ?>"></span>
                                    </div>
                                </div>
                                <div class="ml-4 flex-1">
                                    <h3 class="text-lg font-semibold text-gray-900 dark:text-gray-100">
                                        <?php echo e(t('offline_payment')); ?>

                                    </h3>
                                    <p class="mt-1 text-sm text-gray-600 dark:text-gray-400">
                                        <?php echo e(t('accept_cash_bank_transfers')); ?>

                                    </p>
                                </div>
                            </div>
                            <div class="mt-2 border-t border-gray-200 dark:border-gray-700 pt-2">

                                <!--[if BLOCK]><![endif]--><?php if($settings['payment.offline_enabled']): ?>
                                <span
                                    class="inline-flex items-center text-xs font-medium text-success-600 dark:text-success-400">
                                    <span class="w-2 h-2 rounded-full bg-success-400 mr-2"></span>
                                    <?php echo e(t('active')); ?>

                                </span>
                                <?php else: ?>
                                <span class="inline-flex items-center text-xs font-medium">
                                    <span class="w-2 h-2 rounded-full bg-gray-300 dark:bg-gray-600 mr-2"></span>
                                    <?php echo e(t('not_configured')); ?>

                                </span>
                                <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
                            </div>
                        </div>
                    </a>

                    <!-- Stripe -->
                    <a href="<?php echo e(route('admin.settings.payment.stripe')); ?>" class="group relative">
                        <div
                            class=" block p-6 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl hover:border-info-500 dark:hover:border-info-500 transition-all duration-200 shadow-sm hover:shadow-md">
                            <div class="flex items-center">
                                <div class="shrink-0">
                                    <div class="relative">
                                        <div
                                            class="w-12 h-12 bg-purple-100 dark:bg-purple-900/50 rounded-lg flex items-center justify-center">
                                            <svg class="w-6 h-6 text-purple-600 dark:text-purple-400"
                                                viewBox="0 0 24 24" fill="currentColor">
                                                <path
                                                    d="M13.976 9.15c-2.172-.806-3.356-1.426-3.356-2.409 0-.831.683-1.305 1.901-1.305 2.227 0 4.515.858 6.09 1.631l.89-5.494C18.252.975 15.697 0 12.165 0 9.667 0 7.589.654 6.104 1.872 4.56 3.147 3.757 4.992 3.757 7.218c0 4.039 2.467 5.76 6.476 7.219 2.585.92 3.445 1.574 3.445 2.583 0 .98-.84 1.545-2.354 1.545-1.875 0-4.965-.921-6.99-2.109l-.9 5.555C5.175 22.99 8.385 24 11.714 24c2.641 0 4.843-.624 6.328-1.813 1.664-1.305 2.525-3.236 2.525-5.732 0-4.128-2.524-5.851-6.591-7.305z" />
                                            </svg>
                                        </div> <?php
                                        $stripeSettings = get_batch_settings(['payment.stripe_enabled']);
                                        $stripeSettings = array_merge(['payment.stripe_enabled' => false],
                                        $stripeSettings);
                                        ?>
                                        <span
                                            class="absolute -top-1 -right-1 h-3 w-3 rounded-full border-2 border-white dark:border-gray-800 <?php echo e($stripeSettings['payment.stripe_enabled'] ? 'bg-success-400' : 'bg-gray-200 '); ?>"></span>
                                    </div>
                                </div>
                                <div class="ml-4 flex-1">
                                    <h3 class="text-lg font-semibold text-gray-900 dark:text-gray-100">
                                        <?php echo e(t('stripe')); ?>

                                    </h3>
                                    <p class="mt-1 text-sm text-gray-600 dark:text-gray-400">
                                        <?php echo e(t('credit_card_international_payments')); ?>

                                    </p>
                                </div>
                            </div>
                            <div class="mt-2 border-t border-gray-200 dark:border-gray-700 pt-2">
                                <!--[if BLOCK]><![endif]--><?php if($settings['payment.stripe_enabled']): ?>
                                <span
                                    class="inline-flex items-center text-xs font-medium text-success-600 dark:text-success-400">
                                    <span class="w-2 h-2 rounded-full bg-success-400 mr-2"></span>
                                    <?php echo e(t('active')); ?>

                                </span>
                                <?php else: ?>
                                <span
                                    class="inline-flex items-center text-xs font-medium text-gray-600 dark:text-gray-400">
                                    <span class="w-2 h-2 rounded-full  bg-gray-300 dark:bg-gray-600 mr-2"></span>
                                    <?php echo e(t('not_configured')); ?>

                                </span>
                                <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
                            </div>
                        </div>
                    </a>

                    <!-- Razorpay -->
                    <a href="<?php echo e(route('admin.settings.payment.razorpay')); ?>" class="group relative">
                        <div
                            class="block p-6 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl hover:border-info-500 dark:hover:border-info-500 transition-all duration-200 shadow-sm hover:shadow-md">
                            <div class="flex items-center">
                                <div class="shrink-0">
                                    <div class="relative">
                                        <div
                                            class="w-12 h-12 bg-info-100 dark:bg-info-900/50 rounded-lg flex items-center justify-center">
                                            <svg class="w-6 h-6 text-info-600 dark:text-info-400" fill="none"
                                                stroke="currentColor" viewBox="0 0 24 24">
                                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
                                                    d="M17 9V7a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2m2 4h10a2 2 0 002-2v-6a2 2 0 00-2-2H9a2 2 0 00-2 2v6a2 2 0 002 2zm7-5a2 2 0 11-4 0 2 2 0 014 0z" />
                                            </svg>
                                        </div>
                                        <span
                                            class="absolute -top-1 -right-1 h-3 w-3 rounded-full border-2 border-white dark:border-gray-800 <?php echo e($settings['payment.razorpay_enabled'] ? 'bg-success-400' : 'bg-gray-200'); ?>"></span>
                                    </div>
                                </div>
                                <div class="ml-4 flex-1">
                                    <h3 class="text-lg font-semibold text-gray-900 dark:text-gray-100">
                                        <?php echo e(t('razorpay')); ?>

                                    </h3>
                                    <p class="mt-1 text-sm text-gray-600 dark:text-gray-400">
                                        <?php echo e(t('upi_cards_netbanking_wallets')); ?>

                                    </p>
                                </div>
                            </div>
                            <div class="mt-2 border-t border-gray-200 dark:border-gray-700 pt-2">
                                <!--[if BLOCK]><![endif]--><?php if($settings['payment.razorpay_enabled']): ?>
                                <span
                                    class="inline-flex items-center text-xs font-medium text-success-600 dark:text-success-400">
                                    <span class="w-2 h-2 rounded-full bg-success-400 mr-2"></span>
                                    <?php echo e(t('active')); ?>

                                </span>
                                <?php else: ?>
                                <span
                                    class="inline-flex items-center text-xs font-medium text-gray-600 dark:text-gray-400">
                                    <span class="w-2 h-2 rounded-full bg-gray-300 dark:bg-gray-600 mr-2"></span>
                                    <?php echo e(t('not_configured')); ?>

                                </span>
                                <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
                            </div>
                        </div>
                    </a>

                    <!-- PayPal -->
                    <a href="<?php echo e(route('admin.settings.payment.paypal')); ?>" class="group relative">
                        <div
                            class="block p-6 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl hover:border-info-500 dark:hover:border-info-500  transition-all duration-200 shadow-sm hover:shadow-md">
                            <div class="flex items-center">
                                <div class="shrink-0">
                                    <div class="relative">
                                        <div
                                            class="w-12 h-12 bg-blue-100 dark:bg-blue-900/50 rounded-lg flex items-center justify-center">
                                            <svg class="w-6 h-6 text-blue-600 dark:text-blue-400" fill="currentColor" viewBox="0 0 24 24">
                                                <path d="M7.076 21.337H2.47a.641.641 0 0 1-.633-.74L4.944.901C5.026.382 5.473 0 5.998 0h7.46c2.57 0 4.578.543 5.69 1.81 1.01 1.15 1.304 2.42 1.012 4.287-.023.143-.047.288-.077.437-.983 5.05-4.349 6.797-8.647 6.797h-2.19c-.524 0-.968.382-1.05.9l-1.12 7.106zm14.146-14.42a3.35 3.35 0 0 0-.607-.541c-.013.076-.026.175-.041.254-.58 2.975-2.477 4.562-5.95 4.562H11.4c-.146 0-.27.097-.292.238l-.891 5.641-.03.152h2.01a.469.469 0 0 0 .464-.397l.019-.08.383-2.43.025-.086a.469.469 0 0 1 .464-.398h.292c1.886 0 3.36-.378 3.902-1.78.223-.535.292-1.064.299-1.469a3.385 3.385 0 0 0-.823-2.996 2.53 2.53 0 0 0-.673-.67z"/>
                                                <path d="M20.713 6.72c-.015-.044-.03-.088-.046-.132-1.444-3.344-4.414-4.358-8.844-4.358h-5.8c-.174 0-.34.093-.394.333L3.467 18.21a.237.237 0 0 0 .234.293h3.29l.855-5.424-.027.176c.054-.24.22-.333.394-.333h2.19c3.94 0 7.013-1.6 7.908-6.227.026-.134.05-.265.07-.393.225-1.46.01-2.477-.668-3.582z"/>
                                            </svg>
                                        </div>
                                        <span
                                            class="absolute -top-1 -right-1 h-3 w-3 rounded-full border-2 border-white dark:border-gray-800 <?php echo e($settings['payment.paypal_enabled'] ? 'bg-success-400' : 'bg-gray-200'); ?>"></span>
                                    </div>
                                </div>
                                <div class="ml-4 flex-1">
                                    <h3 class="text-lg font-semibold text-gray-900 dark:text-gray-100">
                                        <?php echo e(t('paypal')); ?>

                                    </h3>
                                    <p class="mt-1 text-sm text-gray-600 dark:text-gray-400">
                                        <?php echo e(t('global_payment_solution_paypal_credit')); ?>

                                    </p>
                                </div>
                            </div>
                            <div class="mt-2 border-t border-gray-200 dark:border-gray-700 pt-2">
                                <!--[if BLOCK]><![endif]--><?php if($settings['payment.paypal_enabled']): ?>
                                    <span
                                        class="inline-flex items-center text-xs font-medium text-success-600 dark:text-success-400">
                                        <span class="w-2 h-2 rounded-full bg-success-400 mr-2"></span>
                                        <?php echo e(t('active')); ?>

                                    </span>
                                <?php else: ?>
                                    <span
                                        class="inline-flex items-center text-xs font-medium text-gray-600 dark:text-gray-400">
                                        <span class="w-2 h-2 rounded-full bg-gray-300 dark:bg-gray-600 mr-2"></span>
                                        <?php echo e(t('not_configured')); ?>

                                    </span>
                                <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
                            </div>
                        </div>
                    </a>

                    <!-- Paystack -->
                    <a href="<?php echo e(route('admin.settings.payment.paystack')); ?>" class="group relative">
                        <div
                            class="block p-6 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl hover:border-info-500 dark:hover:border-info-500 transition-all duration-200 shadow-sm hover:shadow-md">
                            <div class="flex items-center">
                                <div class="shrink-0">
                                    <div class="relative">
                                        <div
                                            class="w-12 h-12 bg-green-100 dark:bg-green-900/50 rounded-lg flex items-center justify-center">
                                            <svg class="w-6 h-6 text-green-600 dark:text-green-400" fill="currentColor" viewBox="0 0 24 24">
                                                <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/>
                                            </svg>
                                        </div>
                                        <span
                                            class="absolute -top-1 -right-1 h-3 w-3 rounded-full border-2 border-white dark:border-gray-800 <?php echo e($settings['payment.paystack_enabled'] ? 'bg-success-400' : 'bg-gray-200'); ?>"></span>
                                    </div>
                                </div>
                                <div class="ml-4 flex-1">
                                    <h3 class="text-lg font-semibold text-gray-900 dark:text-gray-100">
                                        <?php echo e(t('paystack') ?? 'Paystack'); ?>

                                    </h3>
                                    <p class="mt-1 text-sm text-gray-600 dark:text-gray-400">
                                        <?php echo e(t('paystack_description') ?? 'Cards, Bank Transfer, Mobile Money'); ?>

                                    </p>
                                </div>
                            </div>
                            <div class="mt-2 border-t border-gray-200 dark:border-gray-700 pt-2">
                                <!--[if BLOCK]><![endif]--><?php if($settings['payment.paystack_enabled']): ?>
                                    <span
                                        class="inline-flex items-center text-xs font-medium text-success-600 dark:text-success-400">
                                        <span class="w-2 h-2 rounded-full bg-success-400 mr-2"></span>
                                        <?php echo e(t('active')); ?>

                                    </span>
                                <?php else: ?>
                                    <span
                                        class="inline-flex items-center text-xs font-medium text-gray-600 dark:text-gray-400">
                                        <span class="w-2 h-2 rounded-full bg-gray-300 dark:bg-gray-600 mr-2"></span>
                                        <?php echo e(t('not_configured')); ?>

                                    </span>
                                <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
                            </div>
                        </div>
                    </a>
                    <!-- Additional Payment Gateways via Events -->
                    <?php
                        $additionalGatewaysEvent = new \App\Events\PaymentSettingsViewRendering();
                        event($additionalGatewaysEvent);
                    ?>

                    <!--[if BLOCK]><![endif]--><?php $__currentLoopData = $additionalGatewaysEvent->paymentGateways; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $gatewayHtml): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php echo $gatewayHtml; ?>

                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><!--[if ENDBLOCK]><![endif]-->
                </div>
             <?php $__env->endSlot(); ?>
         <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal53747ceb358d30c0105769f8471417f6)): ?>
<?php $attributes = $__attributesOriginal53747ceb358d30c0105769f8471417f6; ?>
<?php unset($__attributesOriginal53747ceb358d30c0105769f8471417f6); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal53747ceb358d30c0105769f8471417f6)): ?>
<?php $component = $__componentOriginal53747ceb358d30c0105769f8471417f6; ?>
<?php unset($__componentOriginal53747ceb358d30c0105769f8471417f6); ?>
<?php endif; ?>
    </div>
</div>
<?php /**PATH /var/www/wao.my/resources/views/livewire/admin/payment/payment-settings.blade.php ENDPATH**/ ?>