<?php $__env->startSection('page_title', __('Edit Charge')); ?>
<?php $__env->startSection('content'); ?>
	<div class="main-content">
		<section class="section">
			<div class="section-header">
				<h1><?php echo app('translator')->get('Edit Charges & Limit'); ?></h1>
				<div class="section-header-breadcrumb">
					<div class="breadcrumb-item active">
						<a href="<?php echo e(route('admin.home')); ?>"><?php echo app('translator')->get('Dashboard'); ?></a>
					</div>
					<div class="breadcrumb-item"><a href="<?php echo e(route('currency.index')); ?>"><?php echo app('translator')->get('Currency'); ?></a></div>
					<div class="breadcrumb-item"><?php echo app('translator')->get('Edit Charges'); ?></div>
				</div>
			</div>


			<div class="section-body">
				<div class="row mt-sm-4">
					<div class="col-12 col-md-4 col-lg-3">
						<?php echo $__env->make('admin.control_panel.components.sidebar', ['settings' => config('generalsettings.settings'), 'suffix' => 'Settings'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
					</div>
					<div class="col-12 col-md-8 col-lg-9">
						<div class="container-fluid" id="container-wrapper">
							<div class="row justify-content-md-center">
								<div class="col-lg-12">
									<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("Charges & Limit For"); ?> <?php echo e(__(ucfirst(array_search($chargesLimit->transaction_type_id, config('transactionType'))))); ?> </h6>
											<a href="<?php echo e(route('currency.index')); ?>" class="btn btn-sm btn-outline-primary"> <i
													class="fas fa-arrow-left"></i> <?php echo app('translator')->get('Back'); ?></a>
										</div>
										<div class="card-body">
											<form method="post" action="<?php echo e(route('charge.update',$chargesLimit)); ?>">
												<?php echo csrf_field(); ?>
												<?php echo method_field('PUT'); ?>
												<div class="row">
													<div class="col-md-6">
														<div class="form-group">
															<label for="min_limit"><?php echo app('translator')->get('Min Limit'); ?></label>
															<div class="input-group input-group-sm">
																<input type="text" name="min_limit"
																	   placeholder="<?php echo app('translator')->get('eg:- 0.00'); ?>"
																	   value="<?php echo e(getAmount($chargesLimit->min_limit)); ?>"
																	   class="form-control <?php $__errorArgs = ['min_limit'];
$__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); ?>">
																<div class="input-group-append"><span
																		class="input-group-text"><?php echo e(__(optional($chargesLimit->currency)->code)); ?></span>
																</div>
																<div
																	class="invalid-feedback"><?php $__errorArgs = ['min_limit'];
$__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>
													</div>
													<div class="col-md-6">
														<div class="form-group">
															<label for="max_limit"><?php echo app('translator')->get('Max Limit'); ?></label>
															<div class="input-group input-group-sm">
																<input type="text" name="max_limit"
																	   placeholder="<?php echo app('translator')->get('eg:- 0.00'); ?>"
																	   value="<?php echo e(getAmount($chargesLimit->max_limit)); ?>"
																	   class="form-control <?php $__errorArgs = ['max_limit'];
$__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); ?>">
																<div class="input-group-append"><span
																		class="input-group-text"><?php echo e(__(optional($chargesLimit->currency)->code)); ?></span>
																</div>
																<div
																	class="invalid-feedback"><?php $__errorArgs = ['max_limit'];
$__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>
													</div>
													<div class="col-md-6">
														<div class="form-group">
															<label
																for="percentage_charge"><?php echo app('translator')->get('Charge Percentage'); ?></label>
															<div class="input-group input-group-sm">
																<input type="text" name="percentage_charge"
																	   placeholder="<?php echo app('translator')->get('eg:- 0.00'); ?>"
																	   value="<?php echo e(getAmount($chargesLimit->percentage_charge)); ?>"
																	   class="form-control <?php $__errorArgs = ['percentage_charge'];
$__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); ?>">
																<div class="input-group-append"><span
																		class="input-group-text"><?php echo app('translator')->get('%'); ?></span></div>
																<div
																	class="invalid-feedback"><?php $__errorArgs = ['percentage_charge'];
$__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>
													</div>
													<div class="col-md-6">
														<div class="form-group">
															<label for="fixed_charge"><?php echo app('translator')->get('Charge Fixed'); ?></label>
															<div class="input-group input-group-sm">
																<input type="text" name="fixed_charge"
																	   placeholder="<?php echo app('translator')->get('eg:- 0.00'); ?>"
																	   value="<?php echo e(getAmount($chargesLimit->fixed_charge)); ?>"
																	   class="form-control <?php $__errorArgs = ['fixed_charge'];
$__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); ?>">
																<div class="input-group-append"><span
																		class="input-group-text"><?php echo e(__(optional($chargesLimit->currency)->code)); ?></span>
																</div>
																<div
																	class="invalid-feedback"><?php $__errorArgs = ['fixed_charge'];
$__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>
													</div>
													<div class="col-md-6">
														<div class="form-group">
															<label><?php echo app('translator')->get('Enable Charge'); ?></label>
															<div class="selectgroup w-100">
																<label class="selectgroup-item">
																	<input type="radio" name="is_active" value="0"
																		   class="selectgroup-input" <?php echo e(old('is_active', $chargesLimit->is_active) == 0 ? 'checked' : ''); ?>>
																	<span class="selectgroup-button"><?php echo app('translator')->get('OFF'); ?></span>
																</label>
																<label class="selectgroup-item">
																	<input type="radio" name="is_active" value="1"
																		   class="selectgroup-input" <?php echo e(old('is_active', $chargesLimit->is_active) == 1 ? 'checked' : ''); ?>>
																	<span class="selectgroup-button"><?php echo app('translator')->get('ON'); ?></span>
																</label>
															</div>
															<?php $__errorArgs = ['is_active'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
															<span class="text-danger" role="alert">
														<strong><?php echo e(__($message)); ?></strong>
													</span>
															<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
														</div>
													</div>
												</div>
												<button type="submit"
														class="btn btn-primary btn-sm btn-block"><?php echo app('translator')->get('Save Changes'); ?></button>
											</form>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>


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

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