Fix errors

This commit is contained in:
Joshua Dwire 2016-04-30 17:55:29 -04:00
parent ed1f2b6044
commit 2af509058b
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="{{App::getLocale()}}">
<head>
@if (isset($account) && $account->hasFeature(FEATURE_WHITE_LABEL))
@if (isset($account) && $account instanceof \App\Models\Account && $account->hasFeature(FEATURE_WHITE_LABEL))
<title>{{ trans('texts.client_portal') }}</title>
@else
<title>{{ isset($title) ? ($title . ' | Invoice Ninja') : ('Invoice Ninja | ' . trans('texts.app_title')) }}</title>

View File

@ -85,12 +85,12 @@
<li {{ Request::is('*client/invoices') ? 'class="active"' : '' }}>
{!! link_to('/client/invoices', trans('texts.invoices') ) !!}
</li>
@if ($account->hasFeature(FEATURE_DOCUMENTS))
@if (isset($account) && $account->hasFeature(FEATURE_DOCUMENTS))
<li {{ Request::is('*client/documents') ? 'class="active"' : '' }}>
{!! link_to('/client/documents', trans('texts.documents') ) !!}
</li>
@endif
@if ($account->getTokenGatewayId())
@if (isset($account) && $account->getTokenGatewayId())
<li {{ Request::is('*client/paymentmethods') ? 'class="active"' : '' }}>
{!! link_to('/client/paymentmethods', trans('texts.payment_methods') ) !!}
</li>