@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', isset($setting['stripe_key']) ? $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', isset($setting['stripe_secret']) ? $setting['stripe_secret'] : null, ['class' => 'form-control', 'id' => 'stripeSecret', 'placeholder' => __('messages.setting.stripe_secret')]) }}
{{-- PAYSTACK --}}
{{ __('messages.setting.paystack') }}
{{ Form::label('paystack_key', __('messages.setting.paystack_key') . ':', ['class' => 'form-label']) }} {{ Form::text('paystack_key', isset($setting['paystack_key']) ? $setting['paystack_key'] : null, ['class' => 'form-control', 'id' => 'paystackKey', 'placeholder' => __('messages.setting.paystack_key')]) }}
{{ Form::label('paystack_secret', __('messages.setting.paystack_secret') . ':', ['class' => 'form-label']) }} {{ Form::text('paystack_secret', isset($setting['paystack_secret']) ? $setting['paystack_secret'] : null, ['class' => 'form-control', 'id' => 'paystackSecret', 'placeholder' => __('messages.setting.paystack_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.setting.paypal_payout_email')) }} {{ Form::email('paypal_email', !empty($setting['paypal_email']) ? $setting['paypal_email'] : null, ['class' => 'form-control mt-2', 'id' => 'paypalEmail', 'placeholder' => __('messages.setting.paypal_payout_email')]) }}
@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')]) }}
{{ Form::label('subscription_model_time', __('messages.setting.subscription_time') . ':', ['class' => 'form-label']) }} {{ Form::text('subscription_model_time', isset($setting['subscription_model_time']) ? $setting['subscription_model_time'] : 5, ['class' => 'form-control', 'id' => 'subscription_model_time', 'placeholder' => __('messages.setting.subscription_time')]) }}
@if (checkFeature('affiliation'))
:
@endif
:
:
:
{{ Form::close() }}
@endsection