diff --git a/resources/views/site/contact.blade.php b/resources/views/site/contact.blade.php index 8daa540b..56935702 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