<?php $__env->startSection('page_title',__('Settings')); ?>

<?php $__env->startSection('content'); ?>
	<div class="main-content">
		<section class="section">
			<div class="section-header">
				<h1><?php echo app('translator')->get('Settings'); ?></h1>
				<div class="section-header-breadcrumb">
					<div class="breadcrumb-item active">
						<a href="<?php echo e(route('user.dashboard')); ?>"><?php echo app('translator')->get('Dashboard'); ?></a>
					</div>
					<div class="breadcrumb-item"><?php echo app('translator')->get('Settings'); ?></div>
				</div>
			</div>
			<div class="row mb-3">
				<div class="container-fluid" id="container-wrapper">
					<div class="row justify-content-md-center">
						<div class="col-md-6">
							<div class="card mb-4 card-primary shadow">
								<div
									class="card-header py-3 d-flex flex-row align-items-center justify-content-between">
									<h6 class="m-0 font-weight-bold text-primary"><?php echo app('translator')->get('Settings'); ?></h6>
								</div>
								<div class="card-body">
									<form action="<?php echo e(route('user.setting')); ?>" method="post"
										  enctype="multipart/form-data">
										<?php echo csrf_field(); ?>
										<div class="row">
											<?php if(basicControl()->store == 1): ?>
												<div class="col-md-6">
													<div class="form-group">
														<label for="Store Currency"><?php echo app('translator')->get('Store Currency'); ?></label>
														<select name="currency"
																class="form-control form-control-sm <?php $__errorArgs = ['currency'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
																id="currency" required>
															<option disabled selected><?php echo app('translator')->get('Select Currency'); ?></option>
															<?php $__empty_1 = true; $__currentLoopData = $currencies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $currency): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
																<option
																	value="<?php echo e($currency->id); ?>"
																	<?php echo e(optional(auth()->user())->store_currency_id == $currency->id ? 'selected':''); ?> data-code="<?php echo e($currency->code); ?>"><?php echo e($currency->code); ?>

																	- <?php echo e($currency->name); ?></option>
															<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
															<?php endif; ?>
														</select>
														<div class="invalid-feedback">
															<?php $__errorArgs = ['currency'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <?php echo app('translator')->get($message); ?> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
														</div>
													</div>
												</div>
											<?php endif; ?>
											<?php if(basicControl()->qr_payment == 1): ?>
												<div class="col-md-6">
													<div class="form-group">
														<label for="QR Code Currency"><?php echo app('translator')->get('QR Code Currency'); ?></label>
														<select name="qr_currency_id"
																class="form-control form-control-sm <?php $__errorArgs = ['qr_currency_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
																id="currency" required>
															<option disabled selected><?php echo app('translator')->get('Select Currency'); ?></option>
															<?php $__empty_1 = true; $__currentLoopData = $currencies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $currency): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
																<option
																	value="<?php echo e($currency->id); ?>"
																	<?php echo e(optional(auth()->user())->qr_currency_id == $currency->id ? 'selected':''); ?> data-code="<?php echo e($currency->code); ?>"><?php echo e($currency->code); ?>

																	- <?php echo e($currency->name); ?></option>
															<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
															<?php endif; ?>
														</select>
														<div class="invalid-feedback">
															<?php $__errorArgs = ['qr_currency_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <?php echo app('translator')->get($message); ?> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
														</div>
													</div>
												</div>
											<?php endif; ?>
										</div>
										<button type="submit"
												class="btn btn-primary btn-sm btn-block"><?php echo app('translator')->get('Update'); ?></button>
									</form>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</section>
	</div>
<?php $__env->stopSection(); ?>


<?php echo $__env->make('user.layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\xamp\htdocs\Paysecure-wallet\project\resources\views/user/setting/index.blade.php ENDPATH**/ ?>