v0.5.1 - Made contact phone number optional and updated data in seeders.

This commit is contained in:
frederikpyt
2020-08-05 13:29:45 +02:00
parent 5f08267ec5
commit 76bea82eea
6 changed files with 13 additions and 11 deletions
@@ -15,8 +15,10 @@
<h4 class="mt-0 mb-0">Telefontid:</h4>
{!! $contact->phonetimes !!}
@endif
<span class="text-center sde-black-20 mt-1">+45 {{ chunk_split($contact->phone, 2, ' ') }}</span>
<a class="btn text-center btn-sde-blue mt-1" href="tel:+45{{ $contact->phone }}">Ring</a>
@if($contact->phone)
<span class="text-center sde-black-20 mt-1">+45 {{ chunk_split($contact->phone, 2, ' ') }}</span>
<a class="btn text-center btn-sde-blue mt-1" href="tel:+45{{ $contact->phone }}">Ring</a>
@endif
@endforeach
@else
<p class="text-center">Der er ingen kontakter!</p>