Files
faveo/resources/views/themes/default1/admin/helpdesk/emails/smtp.blade.php
2016-06-13 20:41:55 +05:30

110 lines
4.5 KiB
PHP

@extends('themes.default1.admin.layout.admin')
@section('Emails')
class="active"
@stop
@section('emails-bar')
active
@stop
@section('smtp')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
{!! Form::model($settings,['url'=>'post-smtp','method'=>'PATCH']) !!}
<div class="box box-primary">
<div class="box-header">
<h3 class="box-title">{!! Lang::get('lang.outgoing_emails') !!}</h3>
</div>
<!-- Ban Status : Radio form : Required -->
<div class="box-body">
@if(Session::has('success'))
<div class="alert alert-success alert-dismissable">
<i class="fa fa-check-circle"></i>
<b>Success!</b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('success')}}
</div>
@endif
<!-- failure message -->
@if(Session::has('fails'))
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-ban"></i>
<b>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<div class="row">
<!-- email Address : Text form : Required -->
<div class="col-md-3 form-group {{ $errors->has('driver') ? 'has-error' : '' }}">
{!! Form::label('driver',Lang::get('lang.driver')) !!}
{!! $errors->first('driver', '<spam class="help-block">:message</spam>') !!}
<select name="driver" class="form-control">
<option <?php if ($settings->driver == "mail") {
echo "selected='selected'";
} ?> value="mail">mail</option>
<option <?php if ($settings->driver == "smtp") {
echo "selected='selected'";
} ?> value="smtp">smtp</option>
</select>
</div>
<div class="col-md-3 form-group {{ $errors->has('host') ? 'has-error' : '' }}">
{!! Form::label('host',Lang::get('lang.host')) !!}
{!! $errors->first('host', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('host',null,['class' => 'form-control']) !!}
</div>
<div class="col-md-3 form-group {{ $errors->has('port') ? 'has-error' : '' }}">
{!! Form::label('port',Lang::get('lang.port')) !!}
{!! $errors->first('port', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('port',null,['class' => 'form-control']) !!}
</div>
<div class="col-md-3 form-group {{ $errors->has('encryption') ? 'has-error' : '' }}">
{!! Form::label('encryption',Lang::get('lang.encryption')) !!}
{!! $errors->first('encryption', '<spam class="help-block">:message</spam>') !!}
<select name="encryption" class="form-control">
<option <?php if ($settings->encryption == "ssl") {
echo "selected='selected'";
} ?> value="ssl">SSL</option>
<option <?php if ($settings->encryption == "tls") {
echo "selected='selected'";
} ?> value="tls">TLS</option>
</select>
</div>
<div class="col-md-4 form-group {{ $errors->has('name') ? 'has-error' : '' }}">
{!! Form::label('name',Lang::get('lang.name')) !!}
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('name',null,['class' => 'form-control']) !!}
</div>
<div class="col-md-4 form-group {{ $errors->has('email') ? 'has-error' : '' }}">
{!! Form::label('email',Lang::get('lang.email')) !!}
{!! $errors->first('email', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('email',null,['class' => 'form-control']) !!}
</div>
<div class="col-md-4 form-group {{ $errors->has('password') ? 'has-error' : '' }}">
{!! Form::label('password',Lang::get('lang.password')) !!}
{!! $errors->first('password', '<spam class="help-block">:message</spam>') !!}
@if($settings->password)
<input type="password" name="password" class="form-control" value="{!! Crypt::decrypt($settings->password) !!}">
@else
<input type="password" name="password" class="form-control">
@endif
</div>
</div>
</div>
</div>
@stop