@php
$contacts = $user->contacts;
@endphp
@foreach ($contacts as $contact)
{!! Form::open([ 'url' => route('contact.destroy', $contact->id),
'method' => 'delete']) !!}
{!! Form::close() !!}
-
Contact details:
@if($contact->contact_type == "business" && $contact->business_name)
- Business name: {{ $contact->business_name }}
@endif
-
{{ ucfirst($contact->contact_type) }} address: {{ $address }}
- Telephone: {{ $contact->phone }}
@if($contact->mobile)
- Mobile: {{ $contact->mobile }}
@endif
- {{ $contact->title }}: {{ $contact->firstname }} {{ $contact->lastname }}
@if(count($contacts) > 1)
@endif
{{-- end address box --}}
@endforeach