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

<?php $__env->startSection('content'); ?>
	<div class="main-content">
		<section class="section">
			<div class="section-header">
				<h1><?php echo app('translator')->get('Notification List'); ?></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('Notification List'); ?></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('Notification List'); ?></h6>
								</div>
								<div class="card-body identity-confirmation">
									<form role="form" method="POST" action="<?php echo e(route('update.setting.notify')); ?>"
										  enctype="multipart/form-data">
										<?php echo csrf_field(); ?>
										<?php echo method_field('put'); ?>
										<div class="row g-4">
											<div class="table-parent table-responsive">
												<table class="table table-striped" id="service-table">
													<tbody>
													<?php $__empty_1 = true; $__currentLoopData = $templates; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
														<tr>
															<td data-label="<?php echo app('translator')->get('Notification List'); ?>">
																<?php echo e($item->name); ?>

															</td>
															<td>
																<div>
																	<label class="cswitch">
																		<input class="cswitch--input"
																			   name="access[]"
																			   value="<?php echo e($item->template_key); ?>"
																			   type="checkbox"
																			   <?php if(in_array($item->template_key, auth()->user()->notify_active_template??[])): ?> checked
																			<?php endif; ?>
																		/><span
																			class="cswitch--trigger wrapper"></span>
																	</label>
																</div>
															</td>
														</tr>
													<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
													<?php endif; ?>
													</tbody>
												</table>
											</div>
											<button type="submit"
													class="btn btn-primary btn-sm btn-block"><?php echo app('translator')->get('Save Changes'); ?></button>
										</div>
									</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/notifyTemplate.blade.php ENDPATH**/ ?>