{{-- Left: Back button --}} {{-- Center: Title --}}

Réconciliation - Étape 2/2

{{-- Right: Spacer --}}
{{-- Note: Le layout gère automatiquement max-w-5xl --}}
{{-- Info box --}}

Demande #{{ $registrationRequest->id }}

{{ strtoupper($registrationRequest->last_name) }} {{ $registrationRequest->first_name }}

Adhérent {{ $member->member_number }}

{{ $member->full_name }}

@csrf {{-- Section 1: Member data comparison --}}

1. Données de l'adhérent - Choisissez les valeurs à conserver

{{-- MOBILE: Vertical layout --}}
{{-- Prénom --}}

Prénom

{{-- Nom --}}

Nom

{{-- Email --}}

Email

{{-- Téléphone --}}

Téléphone

{{-- Notes (append) --}} @if($registrationRequest->user_message)

Notes

@endif
{{-- DESKTOP: Table --}}
{{-- Section 2: Contact management --}}

2. Gestion du contact

{{-- MOBILE: Vertical layout --}}
{{-- Contact dans la demande --}}

Contact dans la demande

@if($registrationRequest->contact_first_name && $registrationRequest->contact_last_name)

{{ strtoupper($registrationRequest->contact_last_name) }} {{ $registrationRequest->contact_first_name }} @if($registrationRequest->contact_relationship) ({{ $registrationRequest->contact_relationship }}) @endif

@if($registrationRequest->contact_email)

{{ $registrationRequest->contact_email }}

@endif @if($registrationRequest->contact_phone)

{{ format_phone($registrationRequest->contact_phone) }}

@endif @else

Aucun contact

@endif
{{-- Contact actuel --}}

Contact actuel de l'adhérent

@if($member->contact)

{{ $member->contact->full_name }} @if($member->contact_relationship) ({{ $member->contact_relationship }}) @endif

@if($member->contact->email)

{{ $member->contact->email }}

@endif @if($member->contact->phone)

{{ format_phone($member->contact->phone) }}

@endif @else

Aucun contact

@endif
{{-- Options --}}
@if($member->contact && $registrationRequest->contact_first_name) {{-- Both have contact --}} @elseif($registrationRequest->contact_first_name && !$member->contact) {{-- Request has contact, member doesn't --}} @elseif(!$registrationRequest->contact_first_name && $member->contact) {{-- Member has contact, request doesn't --}} @else {{-- Neither has contact --}} @endif
{{-- DESKTOP: Side by side --}}
{{-- Section 3: Lease management --}}

3. Gestion du bail

{{-- MOBILE: Vertical layout --}}
{{-- Adresse dans la demande --}}

Adresse dans la demande

{{ $registrationRequest->address }}

@if($registrationRequest->apartment_number)

Appartement : {{ $registrationRequest->apartment_number }}

@endif
{{-- Bail actuel --}}

Bail actuel de l'adhérent

@if($member->activeLease)

{{ $member->activeLease->address->full_address }}

@if($member->activeLease->apartment_number)

Appartement : {{ $member->activeLease->apartment_number }}

@endif

Statut : {{ $member->activeLease->status === 'active' ? 'Actif' : 'Terminé' }}

@else

Aucun bail actif

@endif
{{-- Options --}}
@if($member->activeLease) @else @endif
{{-- DESKTOP: Side by side --}}
{{-- Submit buttons --}}
Annuler