From 427c4320c84d694f14a0022b24ffac6d7c0c2d43 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 18 Jun 2019 18:39:46 -0600 Subject: [PATCH] Update contact view --- resources/views/site/contact.blade.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/resources/views/site/contact.blade.php b/resources/views/site/contact.blade.php index 8daa540bf..56935702b 100644 --- a/resources/views/site/contact.blade.php +++ b/resources/views/site/contact.blade.php @@ -9,10 +9,14 @@
@auth

- @if(filter_var(config('instance.email'), FILTER_VALIDATE_EMAIL) == true) - You can contact the admins by sending an email to {{config('instance.email')}} or using the form below. - @else + @if(config('instance.email') && config('instance.contact.enabled')) + You can contact the admins by sending an email to {{config('instance.email')}} or by using the form below. + @elseif(config('instance.email') && !config('instance.contact.enabled')) + You can contact the admins by sending an email to {{config('instance.email')}}. + @elseif(!config('instance.email') && config('instance.contact.enabled')) You can contact the admins by using the form below. + @else + The admins have not set a contact email address. @endif

@if(config('instance.contact.enabled')) @@ -34,8 +38,8 @@

@if(filter_var(config('instance.email'), FILTER_VALIDATE_EMAIL) == true) You can contact the admins by sending an email to {{config('instance.email')}}. - @else - The admins have not listed any public email. Please log in to send a message. + @elseif (config('instance.contact.enabled')) + The admins have not set a contact email address. Please log in to send a message. @endif

@endauth