Improve email history link

This commit is contained in:
Hillel Coren 2018-03-29 10:56:59 +03:00
parent e537f0fc33
commit 0d86776bc5

View File

@ -176,13 +176,7 @@
<b>{{ $contact->first_name.' '.$contact->last_name }}</b><br/>
@endif
@if ($contact->email)
<i class="fa fa-envelope" style="width: 20px"></i>{!! HTML::mailto($contact->email, $contact->email) !!}
@if (config('services.postmark'))
| <a href="#" onclick="showEmailHistory('{{ $contact->email }}')">
{{ trans('texts.history') }}
</a>
@endif
<br/>
<i class="fa fa-envelope" style="width: 20px"></i>{!! HTML::mailto($contact->email, $contact->email) !!}<br/>
@endif
@if ($contact->phone)
<i class="fa fa-phone" style="width: 20px"></i>{{ $contact->phone }}<br/>
@ -197,8 +191,13 @@
@if (Auth::user()->confirmed && $client->account->enable_client_portal)
<i class="fa fa-dashboard" style="width: 20px"></i><a href="{{ $contact->link }}"
onclick="window.open('{{ $contact->link }}?silent=true', '_blank');return false;">{{ trans('texts.view_in_portal') }}
</a><br/>
onclick="window.open('{{ $contact->link }}?silent=true', '_blank');return false;">{{ trans('texts.view_in_portal') }}</a>
@if (config('services.postmark'))
| <a href="#" onclick="showEmailHistory('{{ $contact->email }}')">
{{ trans('texts.email_history') }}
</a>
@endif
<br/>
@endif
<br/>
@endforeach