<?php $__env->startSection('page_title',__('Push Notification Control')); ?>
<?php $__env->startSection('content'); ?>
	<div class="main-content">
		<section class="section">
			<div class="section-header">
				<h1><?php echo app('translator')->get('Push Notification Configuration'); ?></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"><?php echo app('translator')->get('Push Notification Control'); ?></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.push-notification'), 'suffix' => ''], \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('Instructions'); ?></h6>

											<a href="https://www.youtube.com/watch?v=F_l69SMj6XU" target="_blank"
											   class="btn btn-primary btn-sm  " type="button">
												<span class="btn-label"><i class="fab fa-youtube"></i></span>
												<?php echo app('translator')->get('How to set up it?'); ?>
											</a>
										</div>


										<div class="card-body">
											<?php echo app('translator')->get('Push notification provides realtime communication between servers, apps and devices.
                                            When something happens in your system, it can update web-pages, apps and devices.
                                            When an event happens on an app, the app can notify all other apps and your system
											<br><br>
											Get your free API keys'); ?>
											<a href="https://console.firebase.google.com/"
											   target="_blank"><?php echo app('translator')->get('Create an account'); ?> <i
													class="fas fa-external-link-alt"></i></a>
											<?php echo app('translator')->get(', then create a Firebase Project, then create a web app in created Project
                                                   Go to web app configuration details to get Vapid key, Api key, Auth domain, Project id, Storage bucket, Messaging sender id, App id, Measurement id.'); ?>
										</div>
									</div>
								</div>
								<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('In App Notification Control'); ?></h6>
										</div>
										<div class="card-body">
											<form action="<?php echo e(route('firebase.config')); ?>" method="post">
												<?php echo csrf_field(); ?>
												<div class="row">
													<div class="col-md-4">
														<div class="form-group">
															<label
																for="server_key"><?php echo app('translator')->get('Server Key'); ?></label>
															<input type="text" name="server_key"
																   value="<?php echo e(old('server_key', $control->server_key)); ?>"
																   class="form-control <?php $__errorArgs = ['server_key'];
$__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); ?>"
																   placeholder="<?php echo app('translator')->get('Enter your server key'); ?>">
															<div class="invalid-feedback">
																<?php $__errorArgs = ['server_key'];
$__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 class="col-md-4">
														<div class="form-group">
															<label for="vapid_key"><?php echo app('translator')->get('Vapid Key'); ?></label>
															<input type="text" name="vapid_key"
																   value="<?php echo e(old('vapid_key',$control->vapid_key)); ?>"
																   class="form-control <?php $__errorArgs = ['vapid_key'];
$__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); ?>"
																   placeholder="<?php echo app('translator')->get('Enter your vapid key'); ?>">
															<div class="invalid-feedback">
																<?php $__errorArgs = ['vapid_key'];
$__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 class="col-md-4">
														<div class="form-group">
															<label for="api_key"><?php echo app('translator')->get('Api Key'); ?></label>
															<input type="text" name="api_key"
																   value="<?php echo e(old('api_key',$control->api_key)); ?>"
																   class="form-control <?php $__errorArgs = ['api_key'];
$__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); ?>"
																   placeholder="<?php echo app('translator')->get('Enter your api key'); ?>">
															<div class="invalid-feedback">
																<?php $__errorArgs = ['api_key'];
$__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 class="col-md-4">
														<div class="form-group">
															<label
																for="auth_domain"><?php echo app('translator')->get('Auth Domain'); ?></label>
															<input type="text" name="auth_domain"
																   value="<?php echo e(old('auth_domain',$control->auth_domain)); ?>"
																   class="form-control <?php $__errorArgs = ['auth_domain'];
$__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); ?>"
																   placeholder="<?php echo app('translator')->get('Enter your app secret'); ?>">
															<div class="invalid-feedback">
																<?php $__errorArgs = ['auth_domain'];
$__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 class="col-md-4">
														<div class="form-group">
															<label
																for="project_id"><?php echo app('translator')->get('Project Id'); ?></label>
															<input type="text" name="project_id"
																   value="<?php echo e(old('project_id',$control->project_id)); ?>"
																   class="form-control <?php $__errorArgs = ['project_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); ?>"
																   placeholder="<?php echo app('translator')->get('Enter your project id'); ?>">
															<div class="invalid-feedback">
																<?php $__errorArgs = ['project_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>
													<div class="col-md-4">
														<div class="form-group">
															<label
																for="storage_bucket"><?php echo app('translator')->get('Storage Bucket'); ?></label>
															<input type="text" name="storage_bucket"
																   value="<?php echo e(old('storage_bucket',$control->storage_bucket)); ?>"
																   class="form-control <?php $__errorArgs = ['storage_bucket'];
$__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); ?>"
																   placeholder="<?php echo app('translator')->get('Enter your storage bucket'); ?>">
															<div class="invalid-feedback">
																<?php $__errorArgs = ['storage_bucket'];
$__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 class="col-md-4">
														<div class="form-group">
															<label
																for="messaging_sender_id"><?php echo app('translator')->get('Messaging Sender Id'); ?></label>
															<input type="text" name="messaging_sender_id"
																   value="<?php echo e(old('messaging_sender_id',$control->messaging_sender_id)); ?>"
																   class="form-control <?php $__errorArgs = ['messaging_sender_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); ?>"
																   placeholder="<?php echo app('translator')->get('Enter your messaging sender id'); ?>">
															<div class="invalid-feedback">
																<?php $__errorArgs = ['messaging_sender_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>
													<div class="col-md-4">
														<div class="form-group">
															<label
																for="app_id"><?php echo app('translator')->get('App Id'); ?></label>
															<input type="text" name="app_id"
																   value="<?php echo e(old('app_id',$control->app_id)); ?>"
																   class="form-control <?php $__errorArgs = ['app_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); ?>"
																   placeholder="<?php echo app('translator')->get('Enter your app id'); ?>">
															<div class="invalid-feedback">
																<?php $__errorArgs = ['app_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>
													<div class="col-md-4">
														<div class="form-group">
															<label
																for="measurement_id"><?php echo app('translator')->get('Measurement Id'); ?></label>
															<input type="text" name="measurement_id"
																   value="<?php echo e(old('measurement_id',$control->measurement_id)); ?>"
																   class="form-control <?php $__errorArgs = ['measurement_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); ?>"
																   placeholder="<?php echo app('translator')->get('Enter your measurement id'); ?>">
															<div class="invalid-feedback">
																<?php $__errorArgs = ['measurement_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>
													<div class="col-md-3">
														<div class="form-group">
															<label><?php echo app('translator')->get('User Foreground'); ?></label>
															<div class="selectgroup w-100">
																<label class="selectgroup-item">
																	<input type="radio" name="user_foreground"
																		   value="0"
																		   class="selectgroup-input" <?php echo e(old('user_foreground', $control->user_foreground) == 0 ? 'checked' : ''); ?>>
																	<span class="selectgroup-button"><?php echo app('translator')->get('OFF'); ?></span>
																</label>
																<label class="selectgroup-item">
																	<input type="radio" name="user_foreground"
																		   value="1"
																		   class="selectgroup-input" <?php echo e(old('user_foreground', $control->user_foreground) == 1 ? 'checked' : ''); ?>>
																	<span class="selectgroup-button"><?php echo app('translator')->get('ON'); ?></span>
																</label>
															</div>
															<?php $__errorArgs = ['user_foreground'];
$__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 class="col-md-3">
														<div class="form-group">
															<label><?php echo app('translator')->get('User Background'); ?></label>
															<div class="selectgroup w-100">
																<label class="selectgroup-item">
																	<input type="radio" name="user_background"
																		   value="0"
																		   class="selectgroup-input" <?php echo e(old('user_background', $control->user_background) == 0 ? 'checked' : ''); ?>>
																	<span class="selectgroup-button"><?php echo app('translator')->get('OFF'); ?></span>
																</label>
																<label class="selectgroup-item">
																	<input type="radio" name="user_background"
																		   value="1"
																		   class="selectgroup-input" <?php echo e(old('user_background', $control->user_background) == 1 ? 'checked' : ''); ?>>
																	<span class="selectgroup-button"><?php echo app('translator')->get('ON'); ?></span>
																</label>
															</div>
															<?php $__errorArgs = ['user_background'];
$__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 class="col-md-3">
														<div class="form-group">
															<label><?php echo app('translator')->get('Admin Foreground'); ?></label>
															<div class="selectgroup w-100">
																<label class="selectgroup-item">
																	<input type="radio" name="admin_foreground"
																		   value="0"
																		   class="selectgroup-input" <?php echo e(old('admin_foreground', $control->admin_foreground) == 0 ? 'checked' : ''); ?>>
																	<span class="selectgroup-button"><?php echo app('translator')->get('OFF'); ?></span>
																</label>
																<label class="selectgroup-item">
																	<input type="radio" name="admin_foreground"
																		   value="1"
																		   class="selectgroup-input" <?php echo e(old('admin_foreground', $control->admin_foreground) == 1 ? 'checked' : ''); ?>>
																	<span class="selectgroup-button"><?php echo app('translator')->get('ON'); ?></span>
																</label>
															</div>
															<?php $__errorArgs = ['admin_foreground'];
$__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 class="col-md-3">
														<div class="form-group">
															<label><?php echo app('translator')->get('Admin Background'); ?></label>
															<div class="selectgroup w-100">
																<label class="selectgroup-item">
																	<input type="radio" name="admin_background"
																		   value="0"
																		   class="selectgroup-input" <?php echo e(old('admin_background', $control->admin_background) == 0 ? 'checked' : ''); ?>>
																	<span class="selectgroup-button"><?php echo app('translator')->get('OFF'); ?></span>
																</label>
																<label class="selectgroup-item">
																	<input type="radio" name="admin_background"
																		   value="1"
																		   class="selectgroup-input" <?php echo e(old('admin_background', $control->admin_background) == 1 ? 'checked' : ''); ?>>
																	<span class="selectgroup-button"><?php echo app('translator')->get('ON'); ?></span>
																</label>
															</div>
															<?php $__errorArgs = ['admin_background'];
$__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-block btn-sm"><?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/control_panel/firebaseConfig.blade.php ENDPATH**/ ?>