@extends('layouts.app') @section('title') {{ __('messages.setting.credentials') }} @endsection @section('content')
@include('layouts.errors') @include('flash::message') @include('user-settings.setting_menu')
{{ Form::open(['route' => 'user.setting.update', 'id'=>'UserCredentialsSettings', 'class'=>'form']) }} {{ Form::hidden('sectionName', $sectionName) }}
{{-- STRIPE --}}
{{ __('messages.setting.stripe') }}
{{ Form::label('stripe_key', __('messages.setting.stripe_key').':', ['class' => 'form-label']) }} {{ Form::text('stripe_key',(!empty($setting)) ? $setting['stripe_key'] : null, ['class' => 'form-control' , 'id' => 'stripeKey' , 'placeholder' => __('messages.setting.stripe_key')]) }}
{{ Form::label('stripe_secret', __('messages.setting.stripe_secret').':', ['class' => 'form-label']) }} {{ Form::text('stripe_secret',!empty($setting) ? $setting['stripe_secret']: null, ['class' => 'form-control', 'id' => 'stripeSecret' , 'placeholder' => __('messages.setting.stripe_secret')]) }}
{{-- PAYPAL --}}
{{ __('messages.setting.paypal') }}
{{ Form::label('paypal_client_id', __('messages.setting.paypal_client_id').':', ['class' => 'form-label']) }} {{ Form::text('paypal_client_id', !empty($setting['paypal_client_id'])?$setting['paypal_client_id'] : null, ['class' => 'form-control','id' => 'paypalKey' , 'placeholder' => __('messages.setting.paypal_client_id')]) }}
{{ Form::label('paypal_secret', __('messages.setting.paypal_secret').':', ['class' => 'form-label']) }} {{ Form::text('paypal_secret',!empty($setting['paypal_secret']) ? $setting['paypal_secret'] : null, ['class' => 'form-control','id' => 'paypalSecret' , 'placeholder' => __('messages.setting.paypal_secret')]) }}
{{ Form::label('paypal_mode', __('messages.setting.paypal_mode').':', ['class' => 'form-label']) }} {{ Form::text('paypal_mode',!empty($setting['paypal_mode']) ? $setting['paypal_mode'] : null, ['class' => 'form-control','id' => 'paypalMode' , 'placeholder' => __('messages.setting.paypal_mode')]) }}
@if(checkFeature('affiliation'))
{{ Form::label('paypal_email', __('messages.common.paypal_email').':', ['class' => 'form-label required']) }} {{ Form::email('paypal_email',!empty($setting['paypal_email']) ? $setting['paypal_email'] : null, ['class' => 'form-control','id' => 'paypalEmail' , 'placeholder' => __('messages.common.paypal_email'), 'required' => true]) }}
@endif
{{ Form::label('currency', __('messages.setting.currency').':', ['class' => 'form-label required']) }}
{{ Form::select('currency_id', getCurrencies(), !empty ($setting['currency_id']) ? $setting['currency_id']: null,['class' => 'form-control', 'required','data-control' => 'select2','id' => 'userCurrencySettingId', 'placeholder' => __('messages.setting.select_currency'),]) }}
@if(checkFeature('affiliation'))
:
@endif
{{ Form::close() }}
@endsection