Fix for #1157: error on templates page

This commit is contained in:
Hillel Coren 2016-11-22 20:47:47 +02:00
parent c0679cf197
commit a8321e2ac3

View File

@ -150,11 +150,13 @@
@if ($account->custom_invoice_text_label2)
<li>$customInvoice1</li>
@endif
@if (count($account->account_gateways) > 1)
@if (count($account->account_gateways) > 0)
@foreach (\App\Models\Gateway::$gatewayTypes as $type)
@if ($account->getGatewayByType($type))
<li>${{ Utils::toCamelCase(\App\Models\GatewayType::getAliasFromId($type)) }}Link</li>
<li>${{ Utils::toCamelCase(\App\Models\GatewayType::getAliasFromId($type)) }}Button</li>
@if ($type != GATEWAY_TYPE_TOKEN)
<li>${{ Utils::toCamelCase(\App\Models\GatewayType::getAliasFromId($type)) }}Link</li>
<li>${{ Utils::toCamelCase(\App\Models\GatewayType::getAliasFromId($type)) }}Button</li>
@endif
@endif
@endforeach
@endif