Current File : /home/getxxhzo/app.genicards.com/storage/framework/views/f39e65b93386a955bececabd710791a8.php
<div class="modal fade " id="buyProductModal" tabindex="-1" aria-hidden="true"
    <?php if(getLanguage($vcard->default_language) == 'Arabic'): ?> dir="rtl" <?php endif; ?>>
    <div class="modal-dialog">
        <div class="modal-content" <?php if(getLanguage($vcard->default_language) == 'Arabic'): ?> dir="rtl" <?php endif; ?>>
            <div class="modal-header">
                <h5 class="modal-title"><?php echo e(__('messages.subscription.buy_product')); ?></h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <?php echo Form::open(['id' => 'productBuyForm']); ?>

            <div class="modal-body">
                <div class="alert alert-danger fs-4 text-white d-flex align-items-center d-none" role="alert"
                    id="countryValidationErrorsBox"><i class="fa-solid fa-face-frown me-5"></i>
                </div>

                <div class="mb-3 form-group">
                    <?php echo e(Form::label('name', __('messages.common.name') . ' :', ['class' => 'form-label required'])); ?>

                    <?php echo e(Form::text('name', null, ['class' => 'form-control custom-placeholder', 'required', 'placeholder' => __('messages.form.enter_name'), 'id' => 'paypalIntUserName'])); ?>

                </div>
                <div class="mb-3">
                    <?php echo e(Form::label('email', __('messages.common.email') . ' :', ['class' => 'form-label required '])); ?>

                    <?php echo e(Form::text('email', null, ['class' => 'form-control custom-placeholder', 'required', 'placeholder' => __('messages.form.enter_email'), 'id' => 'paypalIntUserEmail'])); ?>

                </div>
                <div class="mb-3">
                    <?php echo e(Form::label('phone', __('messages.common.phone') . ' :', ['class' => 'form-label'])); ?>

                    <?php echo e(Form::text('phone', null, ['class' => 'form-control custom-placeholder', 'placeholder' => __('messages.form.enter_phone'), 'id' => 'paypalIntUserPhone'])); ?>

                </div>
                <div class="mb-3">
                    <?php echo e(Form::label('address', __('messages.setting.address') . ' :', ['class' => 'form-label required'])); ?>

                    <?php echo e(Form::textarea('address', null, ['class' => 'form-control custom-placeholder', 'placeholder' => __('messages.setting.address'), 'id' => 'address', 'rows' => 2, 'required'])); ?>

                </div>
                <?php
                $enabledPaymentMethods = [];
                $stripeEnabled = getUserSettingValue('stripe_enable', $vcard->user->id) ? $enabledPaymentMethods[1] = \App\Models\Product::STRIPE : null;
                $paypalEnabled = getUserSettingValue('paypal_enable', $vcard->user->id) ? $enabledPaymentMethods[2] = \App\Models\Product::PAYPAL : null;
                $flutterwaveEnabled = getUserSettingValue('flutterwave_enable', $vcard->user->id) ? $enabledPaymentMethods[7] = \App\Models\Product::FLUTTERWAVE : null;
                $paystackEnabled = getUserSettingValue('paytack_enable', $vcard->user->id) ? $enabledPaymentMethods[5] = \App\Models\Product::PAYSTACK : null;
                $manuallyEnabled = getUserSettingValue('manually_payment', $vcard->user->id) ? $enabledPaymentMethods[3] = \App\Models\Product::MANUALLY : null;
                $phonepeEnabled = getUserSettingValue('phonepe_enable', $vcard->user->id) ? $enabledPaymentMethods[4] = \App\Models\Product::PHONEPE : null;
                $razorpayEnabled = getUserSettingValue('rozorpay_enable', $vcard->user->id) ? $enabledPaymentMethods[6] = \App\Models\Product::RAZORPAY : null;

                $translatedPaymentTypes = collect($enabledPaymentMethods)->map(function ($value) {
                    return $value !== null ? trans('messages.' . \App\Models\Product::PAYMENT_METHOD[$value]) : null;
                });
            ?>
            <div class="mb-3">
                <?php echo e(Form::label('payment_method', __('messages.common.payment_methods') . ' :', ['class' => 'form-label required'])); ?>

                <?php echo e(Form::select('payment_method', $translatedPaymentTypes, null, ['class' => 'form-control custom-placeholder  form-select form-select-solid select2Selector', 'data-control' => 'select2', 'required', 'id' => 'productPaymentMethod', 'placeholder' => __('messages.common.payment_methods')])); ?>

            </div>

                <div class="manual-payment-guide d-none">
                    <?php echo e(Form::hidden('manual_payment_guide', isset($userSetting['manual_payment_guide']) ? $userSetting['manual_payment_guide'] : '', ['id' => 'manualPaymentGuideData'])); ?>

                    <div class="">
                        <div class="mb-5" style="text-align: justify">
                                <?php echo isset($userSetting['manual_payment_guide']) ? $userSetting['manual_payment_guide'] : ''; ?>

                        </div>
                    </div>
                </div>
                <?php if(!empty($vcard->privacy_policy) || !empty($vcard->term_condition)): ?>
                    <div class="form-check mb-3">
                        <input type="checkbox" name="product_terms"
                            class="form-check-input terms-condition" id="productTermCondition" placeholder>
                        <label class="form-check-label" for="privacyPolicyCheckbox">
                            <span><?php echo e(__('messages.vcard.agree_to_our')); ?></span>
                            <a href="<?php echo e(route('vcard.show-privacy-policy', [$vcard->url_alias, $vcard->id])); ?>" target="_blank"
                                class="text-decoration-none link-info fs-6" style="color: #0dcaf0 !important;"><?php echo __('messages.vcard.term_and_condition'); ?></a>
                            &
                            <a href="<?php echo e(route('vcard.show-privacy-policy', [$vcard->url_alias, $vcard->id])); ?>" target="_blank"
                                class="text-decoration-none link-info fs-6" style="color: #0dcaf0 !important;"><?php echo e(__('messages.vcard.privacy_policy')); ?></a>
                        </label>
                    </div>
                <?php endif; ?>
                <div class="mt-3">
                    <?php echo e(Form::label('price', __('messages.common.price') . ':', ['class' => 'form-label'])); ?> <span
                        class="form-label" id="price"></span>
                </div>

                <?php echo e(Form::hidden('product_id', null, ['id' => 'productId'])); ?>

            </div>
            <div class="modal-footer pt-0 border-0">
                <?php echo e(Form::button(__('messages.common.save'), ['type' => 'submit', 'class' => 'submit-btn btn btn-primary m-0', 'id' => 'buyProductBtn'])); ?>

                <button type="button" class="btn btn-secondary my-0 ms-3 me-0"
                    data-bs-dismiss="modal"><?php echo e(__('messages.common.discard')); ?></button>
            </div>
            <?php echo e(Form::close()); ?>

        </div>
    </div>
</div>
<script src="https://checkout.razorpay.com/v1/checkout.js"></script>

<?php /**PATH /home/getxxhzo/app.genicards.com/resources/views/vcardTemplates/product-buy.blade.php ENDPATH**/ ?>