<?php $__env->startSection('content'); ?>
    <div class="col-md-12 content-header" >
        <h1><i class="fa fa-cogs"></i> <?php echo e(trans('application.system_settings')); ?></h1>
    </div>
    <section class="content">
        <div class="row">
            <div class="col-md-3">
                <?php echo $__env->make('settings.partials._menu', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
            </div>
            <div class="col-md-9">
                <div class="box box-primary">
                    <div class="box-body">
                        <?php if(count($errors) > 0): ?>
                            <?php echo form_errors($errors); ?>

                        <?php endif; ?>
                        <?php if($setting): ?>
                            <?php echo Form::model($setting, ['route' => ['email.update', $setting->uuid], 'method'=>'PATCH']); ?>

                        <?php else: ?>
                            <?php echo Form::open(['route' => ['email.store']]); ?>

                        <?php endif; ?>
                        <div class="form-group">
                            <?php echo Form::label('protocol', trans('application.protocol')); ?>

                            <?php echo Form::select('protocol',array('smtp'=>'SMTP','mailgun'=>'Mailgun','mandrill'=>'Mandrill'), null, ['class' => "form-control input-sm", 'required']); ?>

                        </div>
                        <div class="form-group">
                            <?php echo Form::label('smtp_host', trans('application.smtp_host')); ?>

                            <?php echo Form::text('smtp_host', null, ['class' => "form-control input-sm"]); ?>

                        </div>
                        <div class="form-group">
                            <?php echo Form::label('smtp_username', trans('application.smtp_username')); ?>

                            <?php echo Form::input('email', 'smtp_username', null, ['class' => "form-control input-sm"]); ?>

                        </div>
                        <div class="form-group">
                            <?php echo Form::label('smtp_password', trans('application.smtp_password')); ?>

                            <?php echo Form::text('smtp_password', null, ['class' => "form-control input-sm"]); ?>

                        </div>
                        <div class="form-group">
                            <?php echo Form::label('smtp_port', trans('application.smtp_port')); ?>

                            <?php echo Form::text('smtp_port', null, ['class' => "form-control input-sm"]); ?>

                        </div>
                        <div class="form-group">
                            <?php echo Form::label('mailgun_domain', trans('application.mailgun_domain')); ?>

                            <?php echo Form::text('mailgun_domain', null, ['class' => "form-control input-sm"]); ?>

                        </div>
                        <div class="form-group">
                            <?php echo Form::label('mailgun_secret', trans('application.mailgun_secret')); ?>

                            <?php echo Form::text('mailgun_secret', null, ['class' => "form-control input-sm"]); ?>

                        </div>
                        <div class="form-group">
                            <?php echo Form::label('mandrill_secret', trans('application.mandrill_secret')); ?>

                            <?php echo Form::text('mandrill_secret', null, ['class' => "form-control input-sm"]); ?>

                        </div>
                        <div class="form-group">
                            <?php echo Form::label('from_name', trans('application.from_name')); ?>

                            <?php echo Form::text('from_name', null, ['class' => "form-control input-sm", 'required']); ?>

                        </div>
                        <div class="form-group">
                            <?php echo Form::label('from_email', trans('application.from_email')); ?>

                            <?php echo Form::input('email','from_email', null, ['class' => "form-control input-sm", 'required']); ?>

                        </div>
                        <div class="form-group">
                            <?php echo Form::submit(trans('application.save_settings'), ['class' => "btn btn-primary btn-sm"]); ?>

                        </div>
                        <?php echo Form::close(); ?>

                    </div>
                </div>
            </div>
        </div>
    </section>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>