@extends('layouts.core.backend') @section('title', trans('cashier::messages.braintree')) @section('page_header')

{{ trans('cashier::messages.braintree') }}

@endsection @section('content')

{!! trans('cashier::messages.braintree.intro') !!}

{{ trans('cashier::messages.payment.options') }}

{{ csrf_field() }}
@include('helpers.form_control', [ 'type' => 'select', 'name' => 'environment', 'value' => $gateway->getEnvironment(), 'label' => trans('cashier::messages.braintree.environment'), 'help_class' => 'payment', 'options' => [['text' => 'Sandbox', 'value' => 'sandbox'],['text' => 'Production', 'value' => 'production']], 'rules' => ['environment' => 'required'], ]) @include('helpers.form_control', [ 'type' => 'text', 'name' => 'merchant_id', 'value' => $gateway->getMerchantId(), 'label' => trans('cashier::messages.braintree.merchant_id'), 'help_class' => 'payment', 'rules' => ['merchant_id' => 'required'], ]) @include('helpers.form_control', [ 'type' => 'text', 'name' => 'public_key', 'value' => $gateway->getPublicKey(), 'label' => trans('cashier::messages.braintree.public_key'), 'help_class' => 'payment', 'rules' => ['public_key' => 'required'], ]) @include('helpers.form_control', [ 'type' => 'text', 'name' => 'private_key', 'value' => $gateway->getPrivateKey(), 'label' => trans('cashier::messages.braintree.private_key'), 'help_class' => 'payment', 'rules' => ['private_key' => 'required'], ])

@if ($gateway->isActive()) @if (!\Acelle\Library\Facades\Billing::isGatewayEnabled($gateway)) @else @endif @else @endif {{ trans('messages.cancel') }}
@endsection