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

@lang('SMS')

{!! Form::select('enable_sms', [true=>__('Enable'), false=>__('Disable')], config('sms.enable'), ['class'=>'form-control selectpicker', 'data-style'=>'btn-default']) !!}
{{--

@lang('SMS Template')

@lang('SMS Text')


{!! Form::label('sms_message_order_placed', __('Order Placed SMS:')) !!} {!! Form::textarea('sms_message_order_placed', config('sms.messages.order_placed'), ['class'=>'form-control', 'placeholder'=>__('Enter Message For Order Placed'), 'rows'=>5, 'cols'=>10])!!}
{!! Form::label('sms_message_order_processed', __('Order Processed SMS:')) !!} {!! Form::textarea('sms_message_order_processed', config('sms.messages.order_processed'), ['class'=>'form-control', 'placeholder'=>__('Enter Message For Order Processed'), '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('SMS Configuration')


{!! Form::open(['method'=>'patch', 'action'=>'ManageAppSettingsController@updateSMSMsgClub', 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "' . __('Please Wait...') . '"; return true;']) !!} {!! Form::hidden('sms_carrier', 'msgclub') !!}
{!! Form::label('msgclub_auth_key', __('MsgClub Auth Key:')) !!} {!! Form::text('msgclub_auth_key', config('sms.msgclub.auth_key'), ['class'=>'form-control', 'placeholder'=>__('Enter Auth Key')]) !!}
{!! Form::label('msgclub_senderId', __('MsgClub Sender ID:')) !!} {!! Form::text('msgclub_senderId', config('sms.msgclub.senderId'), ['class'=>'form-control', 'placeholder'=>__('Enter Sender ID')]) !!}
{!! 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@updateSMSNexmo', 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "' . __('Please Wait...') . '"; return true;']) !!} {!! Form::hidden('sms_carrier', 'nexmo') !!}
{!! Form::label('nexmo_api_key', __('Nexmo API Key:')) !!} {!! Form::text('nexmo_api_key', config('nexmo.api_key'), ['class'=>'form-control', 'placeholder'=>__('Enter API Key')]) !!}
{!! Form::label('nexmo_api_secret', __('Nexmo API Secret:')) !!} {!! Form::text('nexmo_api_secret', config('nexmo.api_secret'), ['class'=>'form-control', 'placeholder'=>__('Enter API Secret')]) !!}
{!! Form::label('nexmo_from', __('Nexmo From:')) !!} {!! Form::text('nexmo_from', config('sms.nexmo.from'), ['class'=>'form-control', 'placeholder'=>__('Enter API Secret')]) !!}
{!! 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@updateSMSNettyfish', 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "' . __('Please Wait...') . '"; return true;']) !!} {!! Form::hidden('sms_carrier', 'nettyfish') !!}
{!! Form::label('nettyfish_api_key', __('Nettyfish API Key:')) !!} {!! Form::text('nettyfish_api_key', config('sms.nettyfish.api_key'), ['class'=>'form-control', 'placeholder'=>__('Enter API Key')]) !!}
{!! Form::label('nettyfish_client_id', __('Nettyfish Client Id:')) !!} {!! Form::text('nettyfish_client_id', config('sms.nettyfish.client_id'), ['class'=>'form-control', 'placeholder'=>__('Enter Nettyfish Client Id')]) !!}
{!! Form::label('nettyfish_sender_id', __('Nettyfish Sender ID:')) !!} {!! Form::text('nettyfish_sender_id', config('sms.nettyfish.sender_id'), ['class'=>'form-control', 'placeholder'=>__('Enter Nettyfish Sender ID')]) !!}
{!! Form::select('nettyfish_sms_type', ['TRANS'=>__('TRANSACTIONAL'), 'PROMO'=>__('PROMOTIONAL')], config('sms.nettyfish.sms_type'), ['class'=>'form-control selectpicker', 'data-style'=>'btn-default']) !!}
{!! Form::submit(__('Save Settings'), ['class'=>'btn btn-primary col-xs-6 col-sm-6 pull-left', 'name'=>'submit_button']) !!}
{!! Form::close() !!}

@lang('SMS Test')


{!! Form::open(['method'=>'post', 'action'=>'ManageTestController@testSMS', 'id'=>'send-test-sms-form']) !!}
{!! Form::label('sms_test_number', __('Mobile Number')) !!} {!! Form::text('sms_test_number', null, ['class'=>'form-control', 'placeholder'=>__("Enter Receiver's Mobile Number"), 'required']) !!}
{!! Form::label('sms_test_message', __('Enter your message')) !!} {!! Form::textarea('sms_test_message', null, ['class'=>'form-control', 'placeholder'=> __('Enter your message'), 'required']) !!}
{!! Form::submit(__('Send SMS'), ['class'=>'btn btn-primary col-xs-6 col-sm-6 pull-left', 'id'=>'send-sms']) !!}
{!! Form::close() !!}