@extends('layouts.app') @section('title', 'Mes contacts') @section('content')

Contacts

Liste de tous vos contacts

Nouveau contact
@forelse($contacts as $contact) @empty @endforelse
Type Entité Prénom Nom Contact Adresse Partagé avec Actions
@if($contact->type->value === 'individual') @else @endif {{ $contact->entity_name ?: '-' }} {{ $contact->first_name ?: '-' }} {{ $contact->last_name ?: '-' }}
@if($contact->email) @endif @if($contact->invoice_email) @endif @if($contact->phone) @endif @if(!$contact->email && !$contact->invoice_email && !$contact->phone) - @endif
@if($contact->street || $contact->zip || $contact->city)
@if($contact->street)
{{ $contact->street }}
@endif @if($contact->zip || $contact->city)
{{ $contact->zip }} {{ $contact->city }}
@endif
@else - @endif
@php $otherUsers = $contact->users->where('id', '!=', $user->id); @endphp @if($otherUsers->count() > 0)
@foreach($otherUsers as $sharedUser) {{ $sharedUser->name }} @endforeach
@else Vous seul·e @endif
Partager Modifier
@csrf @method('DELETE') @if($otherUsers->count() > 0) @else @endif
Aucun contact trouvé
{{ $contacts->links() }}
@endsection