@if(session()->has('settings_saved')) @endif @if(session()->has('settings_not_saved')) @endif @include('includes.form_errors')
{!! Form::open(['method'=>'patch', 'action'=>'ManageAppSettingsController@updateEmailTemplate', 'files'=>true, 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "' . __('Please Wait...') . '"; return true;']) !!}

@lang('Email Template')

{!! Form::label('mail_from_address', __('Mail From Address:')) !!} {!! Form::email('mail_from_address', config('mail.from.address'), ['class'=>'form-control', 'placeholder'=>__('Enter Mail From Address'), 'required'])!!}
{!! Form::label('mail_from_name', __('Mail From Name:')) !!} {!! Form::text('mail_from_name', config('mail.from.name'), ['class'=>'form-control', 'placeholder'=>__('Enter Mail From Name'), 'required'])!!}

Mail Logo

{!! Form::label('mail_logo', __('Choose Logo (200px*200px)'), ['class'=>'btn btn-default btn-file']) !!} {!! Form::file('mail_logo',['class'=>'form-control', 'style'=>'display: none;','onchange'=>'$("#upload-file-info").html(files[0].name)']) !!} @lang('No logo chosen')
{{--

@lang('Email Subject / Message')


{!! Form::label('mail_message_title_order_placed', __('Order Placed Mail Message Title:')) !!} {!! Form::text('mail_message_title_order_placed', config('custom.mail_message_title_order_placed'), ['class'=>'form-control', 'placeholder'=>__('Enter Mail Message Title')])!!}
{!! Form::label('mail_message_order_placed', __('Order Placed Mail Message:')) !!} {!! Form::textarea('mail_message_order_placed', config('custom.mail_message_order_placed'), ['class'=>'form-control', 'placeholder'=>__('Enter Mail Message'), 'rows'=>5, 'cols'=>10])!!}
{!! Form::label('mail_message_title_payment_failed', __('Payment Failed Mail Message Title:')) !!} {!! Form::text('mail_message_title_payment_failed', config('custom.mail_message_title_payment_failed'), ['class'=>'form-control', 'placeholder'=>__('Enter Mail Message Title')])!!}
{!! Form::label('mail_message_payment_failed', __('Payment Failed Mail Message:')) !!} {!! Form::textarea('mail_message_payment_failed', config('custom.mail_message_payment_failed'), ['class'=>'form-control', 'placeholder'=>__('Enter Mail Message'), 'rows'=>5, 'cols'=>10])!!}
{!! Form::label('mail_message_title_order_processed', __('Order Processed Mail Message Title:')) !!} {!! Form::text('mail_message_title_order_processed', config('custom.mail_message_title_order_processed'), ['class'=>'form-control', 'placeholder'=>__('Enter Mail Message Title')])!!}
{!! Form::label('mail_message_order_processed', __('Order Processed Mail Message:')) !!} {!! Form::textarea('mail_message_order_processed', config('custom.mail_message_order_processed'), ['class'=>'form-control', 'placeholder'=>__('Enter Mail Message'), 'rows'=>5, 'cols'=>10])!!}
--}}
{!! Form::submit(__('Save Settings'), ['class'=>'btn btn-primary col-xs-6 col-sm-6 pull-left', 'name'=>'submit_button']) !!}
{!! Form::close() !!}

@lang('Email Configuration')


{!! Form::open(['method'=>'patch', 'action'=>'ManageAppSettingsController@updateEmailSmtp', 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "' . __('Please Wait...') . '"; return true;']) !!} {!! Form::hidden('mail_driver', 'smtp') !!}
{!! Form::label('mail_host', __('Mail Host:')) !!} {!! Form::text('mail_host', config('mail.host'), ['class'=>'form-control', 'placeholder'=>__('smtp.mailtrap.io, smtp.mailgun.org')]) !!}
{!! Form::label('mail_port', __('Mail Port:')) !!} {!! Form::text('mail_port', config('mail.port'), ['class'=>'form-control', 'placeholder'=> __('2525, 465, 25')]) !!}
{!! Form::label('mail_encryption', __('Mail Encryption:')) !!} {!! Form::select('mail_encryption', [''=>__('none'), 'tls'=>__('tls'), 'ssl'=>__('ssl')], config('mail.encryption'), ['class'=>'form-control selectpicker', 'data-style'=>'btn-default']) !!}
{!! Form::label('mail_username', __('SMTP Server Username:')) !!} {!! Form::text('mail_username', config('mail.username'), ['class'=>'form-control', 'placeholder'=>__('SMTP Server Username')])!!}
{!! Form::label('mail_password', __('SMTP Server Password:')) !!} {!! Form::password('mail_password', ['class'=>'form-control', 'placeholder'=>__('SMTP Server Password')])!!}
{!! Form::submit(__('Save Settings'), ['class'=>'btn btn-primary col-xs-6 col-sm-6 pull-left', 'name'=>'submit_button']) !!}
{!! Form::close() !!}
{!! Form::open(['method'=>'patch', 'action'=>'ManageAppSettingsController@updateEmailMailgun', 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "' . __('Please Wait...') . '"; return true;']) !!} {!! Form::hidden('mail_driver', 'mailgun') !!} {!! Form::hidden('mail_host', 'smtp.mailgun.org') !!}
{!! Form::label('mailgun_domain', __('Mailgun Domain:')) !!} {!! Form::text('mailgun_domain', config('services.mailgun.domain'), ['class'=>'form-control', 'placeholder'=>__('Enter Mailgun Domain'), 'required'])!!}
{!! Form::label('mailgun_secret', __('Mailgun Secret:')) !!} {!! Form::text('mailgun_secret', config('services.mailgun.secret'), ['class'=>'form-control', 'placeholder'=>__('Enter Mailgun Secret'), 'required'])!!}
{!! Form::submit(__('Save Settings'), ['class'=>'btn btn-primary col-xs-6 col-sm-6 pull-left', 'name'=>'submit_button']) !!}
{!! Form::close() !!}

@lang('Email Test')


{!! Form::open(['method'=>'post', 'action'=>'ManageTestController@testEmail', 'id'=>'send-test-email-form']) !!}
{!! Form::label('email_test_address', __("Receiver's Email Address")) !!} {!! Form::text('email_test_address', null, ['class'=>'form-control', 'placeholder'=>__("Enter Receiver's Email Address"), 'required']) !!}
{!! Form::label('email_test_message', __('Enter your message')) !!} {!! Form::textarea('email_test_message', null, ['class'=>'form-control', 'placeholder'=> __('Enter your message'), 'required']) !!}
{!! Form::submit(__('Send Email'), ['class'=>'btn btn-primary col-xs-6 col-sm-6 pull-left', 'id'=>'send-email']) !!}
{!! Form::close() !!}