From 8c0004b53b7cf6475ad53b438aea896250f908e5 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 29 Mar 2018 10:56:20 +0300 Subject: [PATCH] Improve email history link --- resources/views/clients/show.blade.php | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/resources/views/clients/show.blade.php b/resources/views/clients/show.blade.php index 215b6d6f1d58..cf42a9d40f8b 100644 --- a/resources/views/clients/show.blade.php +++ b/resources/views/clients/show.blade.php @@ -171,18 +171,12 @@

{{ trans('texts.contacts') }}

- @foreach ($client->contacts as $contact) + @foreach ($client->contacts as $contact) @if ($contact->first_name || $contact->last_name) {{ $contact->first_name.' '.$contact->last_name }}
@endif @if ($contact->email) - {!! HTML::mailto($contact->email, $contact->email) !!} - @if (config('services.postmark')) - | - {{ trans('texts.history') }} - - @endif -
+ {!! HTML::mailto($contact->email, $contact->email) !!}
@endif @if ($contact->phone) {{ $contact->phone }}
@@ -197,11 +191,16 @@ @if (Auth::user()->confirmed && $client->account->enable_client_portal) {{ trans('texts.view_in_portal') }} -
+ onclick="window.open('{{ $contact->link }}?silent=true', '_blank');return false;">{{ trans('texts.view_in_portal') }} + @if (config('services.postmark')) + | + {{ trans('texts.email_history') }} + + @endif +
@endif
- @endforeach + @endforeach