<?php $__env->startSection('title', 'Settings - System notifications'); ?>

<?php $__env->startSection('content_header', 'Settings <small>system notifications</small>'); ?>

<?php $__env->startSection('content'); ?>
    <div class="row">
        <section class="col-lg-12">
            <div class="nav-tabs-custom">
                <?php echo $__env->make('admin.settings._partials.tabs', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                <div class="tab-content">
                    <div class="tab-pane active">
                        <form class="form-horizontal" method="POST" action="<?php echo e(route('admin.settings.system.notifications.update')); ?>">
                            <input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
                            <?php if(count($errors) > 0): ?>
                                <div class="alert alert-danger alert-dismissable">
                                    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                                    <h4><i class="icon fa fa-ban"></i> <strong>Whoops!</strong> There were some problems with your input.</h4>
                                    <ul>
                                        <?php foreach($errors->all() as $error): ?>
                                            <li><?php echo e($error); ?></li>
                                        <?php endforeach; ?>
                                    </ul>
                                </div>
                            <?php endif; ?>
                            <fieldset>
                                <legend>Administrator notifications</legend>
                                <div class="form-group <?php if($errors->has('administrator_job_created')): ?> has-error <?php endif; ?>">
                                    <label for="checkboxSystemNotificationsNewJobCreated" class="col-sm-3 control-label">New job created</label>
                                    <div class="col-sm-9">
                                        <div class="checkbox">
                                            <label>
                                                <input name="administrator_job_created" type="hidden" value="0">
                                                <input name="administrator_job_created" id="checkboxSystemNotificationsNewJobCreated" type="checkbox" value="1" <?php if((bool) old('administrator_job_created', app('settings')->get('system_notifications.administrator.job_created'))): ?> checked <?php endif; ?>>
                                                Enabled
                                            </label>
                                        </div>
                                        <p class="help-block">Administrator will receive an email after new job is created.</p>
                                    </div>
                                </div>
                                <hr>
                                <div class="form-group <?php if($errors->has('administrator_user_created')): ?> has-error <?php endif; ?>">
                                    <label for="checkboxSystemNotificationsNewUserCreated" class="col-sm-3 control-label">New user created</label>
                                    <div class="col-sm-9">
                                        <div class="checkbox">
                                            <label>
                                                <input name="administrator_user_created" type="hidden" value="0">
                                                <input name="administrator_user_created" id="checkboxSystemNotificationsNewUserCreated" type="checkbox" value="1" <?php if((bool) old('administrator_user_created', app('settings')->get('system_notifications.administrator.user_created'))): ?> checked <?php endif; ?>>
                                                Enabled
                                            </label>
                                        </div>
                                        <p class="help-block">administrator will receive an email after new user is created.</p>
                                    </div>
                                </div>
                            </fieldset>
                            <fieldset>
                                <legend>User notifications</legend>
                                <div class="form-group <?php if($errors->has('user_job_activated')): ?> has-error <?php endif; ?>">
                                    <label for="checkboxSystemNotificationsNewJobActivated" class="col-sm-3 control-label">Job activated</label>
                                    <div class="col-sm-9">
                                        <div class="checkbox">
                                            <label>
                                                <input name="user_job_activated" type="hidden" value="0">
                                                <input name="user_job_activated" id="checkboxSystemNotificationsNewJobActivated" type="checkbox" value="1" <?php if((bool) old('user_job_activated', app('settings')->get('system_notifications.user.job_activated'))): ?> checked <?php endif; ?>>
                                                Enabled
                                            </label>
                                        </div>
                                        <p class="help-block">User will receive an email after job is activated.</p>
                                    </div>
                                </div>
                                <hr>
                                <div class="form-group <?php if($errors->has('user_job_deactivated')): ?> has-error <?php endif; ?>">
                                    <label for="checkboxSystemNotificationsNewJobDeactivated" class="col-sm-3 control-label">Job deactivated</label>
                                    <div class="col-sm-9">
                                        <div class="checkbox">
                                            <label>
                                                <input name="user_job_deactivated" type="hidden" value="0">
                                                <input name="user_job_deactivated" id="checkboxSystemNotificationsNewJobDeactivated" type="checkbox" value="1" <?php if((bool) old('user_job_deactivated', app('settings')->get('system_notifications.user.job_deactivated'))): ?> checked <?php endif; ?>>
                                                Enabled
                                            </label>
                                        </div>
                                        <p class="help-block">User will receive an email after job is deactivated.</p>
                                    </div>
                                </div>
                                <hr>
                                <div class="form-group <?php if($errors->has('user_registered')): ?> has-error <?php endif; ?>">
                                    <label for="checkboxSystemNotificationsUserRegistered" class="col-sm-3 control-label">User registered</label>
                                    <div class="col-sm-9">
                                        <div class="checkbox">
                                            <label>
                                                <input name="user_registered" type="hidden" value="0">
                                                <input name="user_registered" id="checkboxSystemNotificationsUserRegistered" type="checkbox" value="1" <?php if((bool) old('user_registered', app('settings')->get('system_notifications.user.registered'))): ?> checked <?php endif; ?>>
                                                Enabled
                                            </label>
                                        </div>
                                        <p class="help-block">User will receive an email after registration.</p>
                                    </div>
                                </div>
                            </fieldset>
                            <hr>
                            <div class="clearfix">
                                <div class="pull-right">
                                    <button type="submit" class="btn btn-success">Save</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </section>
    </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>