@extends('backend.app') @section('title') {{ env('APP_NAME') }} || Resident Details @endsection @section('content')

Resident Profile

Comprehensive details of the resident and matched property owner.

Back to List
{{-- Resident Information Card --}}
@php $avatar = $resident->user->avatar ?? null; @endphp @if ($avatar) @else
@endif

{{ $resident->user->name ?? 'N/A' }}

{{ $resident->user->email ?? 'N/A' }} {{ $resident->user->phone ?? 'N/A' }}
Resident Details

Property Owner Invitation Code: {{ $resident->user->invitation_code ?? 'None' }}

Address: {{ $resident->user->address ?? 'N/A' }}

{{--

Unit/Flat Number: {{ $resident->resident->unit_flat_number ?? 'Not Set' }}

--}}
{{-- Property & Owner Details (Matched by Invitation Code) --}}
Matched Property Information
@if ($resident->assigned_property)

Property Owner: {{ $resident->assigned_owner->name ?? 'N/A' }}

Property ID: {{ $resident->assigned_property->id }}

Property Name: {{ $resident->assigned_property->property_name }}

Property Address: {{ $resident->assigned_property->property_address }}

@else

No owner found with a matching invitation code.

@endif
@endsection