@extends('Admin.Layouts.default') @section('content') @if (Session::has('errors'))
@endif
{!! trans('front.sms_gateway') !!}
{!! Form::open(['route' => 'admin.sms_gateway.store', 'method' => 'POST', '']) !!}
{!! Form::checkbox('enabled', 1, array_get($params, 'enabled')) !!} {!! Form::label('enabled', trans('front.enable_sms_gateway')) !!}
{!! Form::checkbox('use_as_system_gateway', 1, array_get($params, 'use_as_system_gateway')) !!} {!! Form::label('use_as_system_gateway', trans('front.use_as_system_gateway')) !!}
{!!Form::label('request_method', trans('validation.attributes.request_method').':')!!} {!!Form::select('request_method', config('sms.gateways'), array_get($params, 'request_method'), ['class' => 'form-control'])!!}
{!!Form::label('encoding', trans('validation.attributes.encoding').':')!!} {!!Form::select('encoding', config('sms.encodings'), array_get($params, 'encoding'), ['class' => 'form-control'])!!}
{!!Form::label('authentication', trans('validation.attributes.authentication').':')!!} {!!Form::select('authentication', config('sms.authentications'), array_get($params, 'authentication'), ['class' => 'form-control'])!!}
{!!Form::label('username', trans('validation.attributes.username').':')!!} {!!Form::text('username', array_get($params, 'username'), ['class' => 'form-control'])!!}
{!!Form::label('password', trans('validation.attributes.password').':')!!} {!!Form::text('password', array_get($params, 'password'), ['class' => 'form-control'])!!}
{!!Form::label('custom_headers', trans('validation.attributes.sms_gateway_headers').':')!!} {!!Form::textarea('custom_headers', array_get($params, 'custom_headers'), ['class' => 'form-control', 'rows' => 2])!!} (e.g. Accept: text/plain; Accept-Language: en-US;)
{!!Form::label('sms_gateway_url', trans('validation.attributes.sms_gateway_url').':')!!} {!!Form::textarea('sms_gateway_url', array_get($params, 'sms_gateway_url'), ['class' => 'form-control', 'rows' => 3])!!}
{!!trans('front.sms_gateway_text')!!}
{!!Form::label('user_id', trans('validation.app_gateway_admin_settings').':')!!} {!!Form::select('user_id', $users, array_get($params, 'user_id'), ['class' => 'form-control'])!!}
{!! Form::label('auth_id', trans('validation.attributes.auth_id').':') !!} {!! Form::text('auth_id', array_get($params, 'auth_id'), ['class' => 'form-control']) !!}
{!! Form::label('auth_token', trans('validation.attributes.auth_token').':') !!} {!! Form::text('auth_token', array_get($params, 'auth_token'), ['class' => 'form-control']) !!}
{!! Form::label('senders_phone', trans('validation.attributes.senders_phone').':') !!} {!! Form::text('senders_phone', array_get($params, 'senders_phone'), ['class' => 'form-control']) !!}
{!! Form::close() !!}
@stop @section('javascript') @stop