@extends('payments.payment_method')
@section('payment_details')
@parent
{!! Former::open($url) !!}
{{ trans('texts.paypal') }}
{{$details->firstName}} {{$details->lastName}}
{{$details->email}}
@if (isset($amount) && $client && $account->showTokenCheckbox())
selectTokenCheckbox() ? 'CHECKED' : '' }} value="1" style="margin-left:0px; vertical-align:top">
{!! trans('texts.token_billing_secure', ['link' => link_to('https://www.braintreepayments.com/', 'Braintree', ['target' => '_blank'])]) !!}
@endif
@if(isset($amount))
{!! Button::success(request()->capture ? strtoupper(trans('texts.submit')) : strtoupper(trans('texts.pay_now') . ' - ' . $account->formatMoney($amount, $client, CURRENCY_DECORATOR_CODE) ))
->submit()
->large() !!}
@else
{!! Button::success(strtoupper(trans('texts.add_paypal_account') ))
->submit()
->large() !!}
@endif
{!! Former::close() !!}
@stop