<?php $__env->startSection('title', 'Settings - E-Mails'); ?>

<?php $__env->startSection('content_header', 'Settings <small>e-mails</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.mail.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; ?>
                            <div class="form-group <?php if($errors->has('admin_mail')): ?> has-error <?php endif; ?>">
                                <label for="inputAdminMail" class="col-sm-3 control-label">Administrator email</label>
                                <div class="col-sm-9">
                                    <input name="admin_mail" type="text" class="form-control" id="inputAdminMail" value="<?php echo e(old('admin_mail', app('settings')->get('mail.admin_mail'))); ?>">
                                    <p class="help-block">Administrator email to send system notifications.</p>
                                </div>
                            </div>
                            <hr>
                            <div class="form-group <?php if($errors->has('from_address')): ?> has-error <?php endif; ?>">
                                <label for="inputAdminMail" class="col-sm-3 control-label">Sent from (email)</label>
                                <div class="col-sm-9">
                                    <input name="from_address" type="text" class="form-control" id="inputAdminMail" value="<?php echo e(old('from_address', app('settings')->get('mail.from.address'))); ?>">
                                    <p class="help-block">Emails will be sent from defined email address.</p>
                                </div>
                            </div>
                            <hr>
                            <div class="form-group <?php if($errors->has('from_name')): ?> has-error <?php endif; ?>">
                                <label for="inputAdminMail" class="col-sm-3 control-label">Sent from (name)</label>
                                <div class="col-sm-9">
                                    <input name="from_name" type="text" class="form-control" id="inputAdminMail" value="<?php echo e(old('from_name', app('settings')->get('mail.from.name'))); ?>">
                                    <p class="help-block">Emails will be sent with a given name.</p>
                                </div>
                            </div>
                            <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(); ?>