Update contact view

This commit is contained in:
Daniel Supernault 2019-06-18 18:49:45 -06:00
parent 8430a8419a
commit fc12f1eba5
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -36,10 +36,12 @@
@endif
@else
<p class="lead">
@if(filter_var(config('instance.email'), FILTER_VALIDATE_EMAIL) == true)
You can contact the admins by sending an email to {{config('instance.email')}}.
@elseif (config('instance.contact.enabled'))
@if(config('instance.email') && config('instance.contact.enabled'))
You can contact the admins by sending an email to <span class="font-weight-bold">{{config('instance.email')}}</span> or log in to send a message.
@elseif (!config('instance.email') && config('instance.contact.enabled'))
The admins have not set a contact email address. Please log in to send a message.
@elseif (config('instance.email') && !config('instance.contact.enabled'))
You can contact the admins by sending an email to <span class="font-weight-bold">{{config('instance.email')}}</span>.
@endif
</p>
@endauth