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