<?php $__env->startSection('title', __('Finance Settings')); ?>
<?php $__env->startSection('titlebar_actions', ''); ?>

<?php $__env->startSection('settings'); ?>
    <form action="<?php echo e(route('dashboard.admin.config.finance.store')); ?>" method="POST">
        <?php echo csrf_field(); ?>
        <div class="row">
            <div class="col-md-5 mx-auto">
				<?php if (isset($component)) { $__componentOriginal4112aa7b4e8fd49be7872da2b81ccc8b = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal4112aa7b4e8fd49be7872da2b81ccc8b = $attributes; } ?>
<?php $component = App\View\Components\FormStep::resolve(['step' => '1','label' => ''.e(__('Affiliate Settings')).''] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('form-step'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\FormStep::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'mb-4 mt-5']); ?>
				 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal4112aa7b4e8fd49be7872da2b81ccc8b)): ?>
<?php $attributes = $__attributesOriginal4112aa7b4e8fd49be7872da2b81ccc8b; ?>
<?php unset($__attributesOriginal4112aa7b4e8fd49be7872da2b81ccc8b); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal4112aa7b4e8fd49be7872da2b81ccc8b)): ?>
<?php $component = $__componentOriginal4112aa7b4e8fd49be7872da2b81ccc8b; ?>
<?php unset($__componentOriginal4112aa7b4e8fd49be7872da2b81ccc8b); ?>
<?php endif; ?>
				<div class="row">
                    <div class="col-md-12">
                        <div class="mb-3">
                            <label class="form-label"><?php echo e(__('Affiliate Minimum Withdrawal')); ?></label>
                            <input
                                    class="form-control"
                                    id="affiliate_minimum_withdrawal"
                                    type="number"
                                    name="affiliate_minimum_withdrawal"
                                    value="<?php echo e($setting->affiliate_minimum_withdrawal); ?>"
                            >
                        </div>
                    </div>

                    <div class="col-md-12">
                        <div class="mb-3">
                            <label class="form-label"><?php echo e(__('Affiliate Commission Percentage')); ?> (%)</label>
                            <input
                                    class="form-control"
                                    id="affiliate_commission_percentage"
                                    type="number"
                                    name="affiliate_commission_percentage"
                                    value="<?php echo e($setting->affiliate_commission_percentage); ?>"
                            >
                        </div>
                    </div>

                    <div class="col-md-12">
                        <div class="mb-3">
                            <label class="form-label"><?php echo e(__('Default Currency')); ?></label>
                            <select
                                    class="form-select"
                                    id="default_currency"
                                    name="default_currency"
                            >
                                <?php echo $__env->make('panel.admin.settings.currencies', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                            </select>
                        </div>
                    </div>

                    <div class="col-md-12">
                        <div class="mb-3">
                            <label class="form-label"><?php echo e(__('Default Country')); ?></label>
                            <select
                                    class="form-select"
                                    id="default_country"
                                    name="default_country"
                            >
                                <?php echo $__env->make('panel.admin.settings.countries', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                            </select>
                        </div>
                    </div>

					<div class="col-md-12">
							<div class="mb-3">
								<?php if (isset($component)) { $__componentOriginal740c66ff9bbfcb19a96a45ba2fa42d64 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal740c66ff9bbfcb19a96a45ba2fa42d64 = $attributes; } ?>
<?php $component = App\View\Components\Card::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('card'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Card::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'mb-3']); ?>
									<h4 class="mb-3"><?php echo e(__('Affiliate Program')); ?>

										<?php if (isset($component)) { $__componentOriginald30cf9cba6bb540c6bffcc9785239679 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginald30cf9cba6bb540c6bffcc9785239679 = $attributes; } ?>
<?php $component = App\View\Components\Badge::resolve(['variant' => 'secondary'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('badge'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Badge::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'ms-2 text-2xs']); ?>
											<?php echo app('translator')->get('New'); ?>
										 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginald30cf9cba6bb540c6bffcc9785239679)): ?>
<?php $attributes = $__attributesOriginald30cf9cba6bb540c6bffcc9785239679; ?>
<?php unset($__attributesOriginald30cf9cba6bb540c6bffcc9785239679); ?>
<?php endif; ?>
<?php if (isset($__componentOriginald30cf9cba6bb540c6bffcc9785239679)): ?>
<?php $component = $__componentOriginald30cf9cba6bb540c6bffcc9785239679; ?>
<?php unset($__componentOriginald30cf9cba6bb540c6bffcc9785239679); ?>
<?php endif; ?>
									</h4>
									<?php if (isset($component)) { $__componentOriginala97611b31e90fc7dc431a34465dcc851 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginala97611b31e90fc7dc431a34465dcc851 = $attributes; } ?>
<?php $component = App\View\Components\Forms\Input::resolve(['id' => 'onetime_commission','name' => 'onetime_commission','type' => 'checkbox','switcher' => true,'label' => ''.e(__('Onetime Commission')).'','tooltip' => ''.e(__('If you want to give a commission to the affiliate only once, you can activate this feature. When disabled, the affiliate will receive a recurring commission for each purchase.')).''] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('forms.input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Forms\Input::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['checked' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(setting('onetime_commission', 0) == 1)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginala97611b31e90fc7dc431a34465dcc851)): ?>
<?php $attributes = $__attributesOriginala97611b31e90fc7dc431a34465dcc851; ?>
<?php unset($__attributesOriginala97611b31e90fc7dc431a34465dcc851); ?>
<?php endif; ?>
<?php if (isset($__componentOriginala97611b31e90fc7dc431a34465dcc851)): ?>
<?php $component = $__componentOriginala97611b31e90fc7dc431a34465dcc851; ?>
<?php unset($__componentOriginala97611b31e90fc7dc431a34465dcc851); ?>
<?php endif; ?>
								 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal740c66ff9bbfcb19a96a45ba2fa42d64)): ?>
<?php $attributes = $__attributesOriginal740c66ff9bbfcb19a96a45ba2fa42d64; ?>
<?php unset($__attributesOriginal740c66ff9bbfcb19a96a45ba2fa42d64); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal740c66ff9bbfcb19a96a45ba2fa42d64)): ?>
<?php $component = $__componentOriginal740c66ff9bbfcb19a96a45ba2fa42d64; ?>
<?php unset($__componentOriginal740c66ff9bbfcb19a96a45ba2fa42d64); ?>
<?php endif; ?>
							</div>
						</div>
                </div>
            </div>

            <div class="col-md-5 mx-auto">
				<?php if (isset($component)) { $__componentOriginal4112aa7b4e8fd49be7872da2b81ccc8b = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal4112aa7b4e8fd49be7872da2b81ccc8b = $attributes; } ?>
<?php $component = App\View\Components\FormStep::resolve(['step' => '2','label' => ''.e(__('Billing')).''] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('form-step'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\FormStep::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'mb-4 mt-5']); ?>
				 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal4112aa7b4e8fd49be7872da2b81ccc8b)): ?>
<?php $attributes = $__attributesOriginal4112aa7b4e8fd49be7872da2b81ccc8b; ?>
<?php unset($__attributesOriginal4112aa7b4e8fd49be7872da2b81ccc8b); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal4112aa7b4e8fd49be7872da2b81ccc8b)): ?>
<?php $component = $__componentOriginal4112aa7b4e8fd49be7872da2b81ccc8b; ?>
<?php unset($__componentOriginal4112aa7b4e8fd49be7872da2b81ccc8b); ?>
<?php endif; ?>
				<div class="row">
                    <div class="col-md-12">
                        <div class="mb-3">
                            <label class="form-label"><?php echo e(__('Invoice Name')); ?></label>
                            <input
                                    class="form-control"
                                    id="invoice_name"
                                    type="text"
                                    name="invoice_name"
                                    value="<?php echo e($setting->invoice_name); ?>"
                            >
                        </div>
                        <div class="mb-3">
                            <label class="form-label"><?php echo e(__('Invoice Website')); ?></label>
                            <input
                                    class="form-control"
                                    id="invoice_website"
                                    type="text"
                                    name="invoice_website"
                                    value="<?php echo e($setting->invoice_website); ?>"
                            >
                        </div>
                        <div class="mb-3">
                            <label class="form-label"><?php echo e(__('Invoice Address')); ?></label>
                            <textarea
                                    class="form-control"
                                    id="invoice_address"
                                    type="text"
                                    name="invoice_address"
                            ><?php echo e($setting->invoice_address); ?></textarea>
                        </div>
                        <div class="mb-3">
                            <label class="form-label"><?php echo e(__('Invoice City')); ?></label>
                            <input
                                    class="form-control"
                                    id="invoice_city"
                                    type="text"
                                    name="invoice_city"
                                    value="<?php echo e($setting->invoice_city); ?>"
                            >
                        </div>
                        <div class="mb-3">
                            <label class="form-label"><?php echo e(__('Invoice State')); ?></label>
                            <input
                                    class="form-control"
                                    id="invoice_state"
                                    type="text"
                                    name="invoice_state"
                                    value="<?php echo e($setting->invoice_state); ?>"
                            >
                        </div>
                        <div class="mb-3">
                            <label class="form-label"><?php echo e(__('Invoice Postal')); ?></label>
                            <input
                                    class="form-control"
                                    id="invoice_postal"
                                    type="text"
                                    name="invoice_postal"
                                    value="<?php echo e($setting->invoice_postal); ?>"
                            >
                        </div>
                        <div class="mb-3">
                            <label class="form-label"><?php echo e(__('Invoice Country')); ?></label>
                            <input
                                    class="form-control"
                                    id="invoice_country"
                                    type="text"
                                    name="invoice_country"
                                    value="<?php echo e($setting->invoice_country); ?>"
                            >
                        </div>
                        <div class="mb-3">
                            <label class="form-label"><?php echo e(__('Invoice Phone')); ?></label>
                            <input
                                    class="form-control"
                                    id="invoice_phone"
                                    type="text"
                                    name="invoice_phone"
                                    value="<?php echo e($setting->invoice_phone); ?>"
                            >
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-md-11 mt-4 mx-auto">
                <button
                        class="btn btn-primary w-full"
                        type="submit"
                >
                    <?php echo e(__('Save')); ?>

                </button>
            </div>
        </div>

    </form>
<?php $__env->stopSection(); ?>


<?php $__env->startPush('script'); ?>
    <script src="<?php echo e(custom_theme_url('/assets/js/panel/settings.js')); ?>"></script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('panel.layout.settings',['layout' => 'fullwidth'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/aineptune/public_html/resources/views/default/panel/admin/config/finance.blade.php ENDPATH**/ ?>