@extends('admin.admin-master')
@section('content')
<div>&nbsp; </div>

<div>&nbsp; </div>

<h3><i class="fa fa-envelope-o"></i> E-mail configuration   </h3>
<div>&nbsp; </div>
<!--- Main Panel ----->

<div class="col-md-12">
  <div class="col-md-6">
    @if (Session::has('msg'))
    <span class="alert {{Session::get('class')}} animated flipX">
        {{Session::get('msg')}}
    </span>
    @endif
    <div>&nbsp; </div>
  <form action="/admin/email-setting" method="POST">
    <label> E-mail : </label>
    <input type="text" name="email_address" class="form-control input-sm" required value="{{isset($info->email_address)?$info->email_address:''}}" placeholder="E.g. someone@domain.com">
    <label> Password : </label>
    <input type="password" name="password" class="form-control input-sm" required value="{{isset($info->password)?$info->password:''}}">
    <label> SMTP Address : </label>
    <input type="text" name="smtp_address" class="form-control input-sm" required value="{{isset($info->smtp_address)?$info->smtp_address:''}}" placeholder="e.g. smtp.gmail.com">
    <label> Sender Name  : </label>
    <input type="text" name="sender_name" class="form-control input-sm" required value="{{isset($info->sender_name)?$info->sender_name:''}}">
    <label> Driver  : </label>
    <input type="text" name="driver" class="form-control input-sm" required value="{{isset($info->driver)?$info->driver:'smtp'}}" placeholder="smtp ,  mail or sendmail">
    <label> Port : </label>
    <input type="text" name="port" class="form-control input-sm" required value="{{isset($info->port)?$info->port:'587'}}">
    <div class="clearfix">&nbsp;</div>
    <button class="btn btn-sm btn-info " type="submit"> <i class="fa fa-save"></i> Save </button>
 </form>
  </div>
  <div class="col-md-6">
    <form action="/admin/sign-up-text" method="POST">
      <label> Email Sign up text </label>
      <textarea class="form-control input-sm" name="signup_text" rows="7">{{isset($info->signup_text)?$info->signup_text:''}}</textarea>
      <i class="fa fa-bullhorn"></i> <b>Tips:</b> <b>{name}</b> = User name  , <b>{url}</b> = Site link   text !
      <br>
      <br>
      <button class="btn btn-info btn-sm" type="submit"> Save and Update</button>
    </form>
  </div>
  </div>

@stop
