@extends('layouts.admin.layout') @section('content')
@include('partials.message') {{-- Back + Page title --}}

Person Profile

{{-- ══════════════════════════════════════════════ FULL-WIDTH PROFILE HEADER CARD ══════════════════════════════════════════════ --}}
{{-- Avatar column --}}
{{ $user->FullName }} {{-- Edit / Delete --}}
Edit
@csrf @method('delete')
{{-- Details column --}}
{{-- Name + ID + kebab menu --}}

{{ ucfirst($user->FullName) }}

ID: {{ $user->id }}

{{-- ⋮ Kebab menu --}}
{{-- Info grid --}}
{{-- Basic Information --}}

Basic Information

  • Family {{ optional($user->userprofile)->family ?: '--' }}
  • Date of Birth {{ optional($user->userprofile)->date_of_birth ? date('d M Y', strtotime($user->userprofile->date_of_birth)) : '--' }}
  • Occupation @if(optional($user->userprofile)->sub_occupation) {{ optional($user->userprofile)->profession }} ({{ optional($user->userprofile)->sub_occupation }}) @else {{ ucwords(str_replace('_',' ', optional($user->userprofile)->profession ?? '--')) }} @endif
  • Gender {{ optional($user->userprofile)->gender ?: '--' }}
  • Aadhaar No. {{ optional($user->userprofile)->aadhar_number ?: '--' }}
{{-- Contact Information --}}

Contact Information

{{-- ══════════════════════════════════════════════ --}}
{{-- ══════════════════════════════════ PROFILE TABS (pure Blade) ══════════════════════════════════ --}}
{{-- Tab nav --}}
@php $tabs = [ ['id'=>'myprofile', 'label'=>'My Profile'], ['id'=>'timeline', 'label'=>'Timeline'], ['id'=>'family', 'label'=>'Family'], ['id'=>'groups', 'label'=>'Assigned Groups'], ['id'=>'messages', 'label'=>'Messages'], ['id'=>'notes', 'label'=>'Notes'], ['id'=>'idcard', 'label'=>'IDCard'] ]; @endphp @foreach($tabs as $i => $tab) @endforeach
{{-- ── Tab 1 : My Profile ─────────────────────── --}}
@php $profile = $user->userprofile; @endphp
    @foreach([ ['age.svg', 'Age', $profile->age ?? '--'], ['marriage.svg', 'Marriage Status', ucfirst($profile->marriage_status ?? '--')], ['date.svg', 'Marriage Date', $profile->marriage_date ? date('d M Y', strtotime($profile->marriage_date)) : '--'], ['member-ship.svg','Membership Type', ucfirst($profile->membership_type ?? '--')], ['date.svg', 'Membership Start Date', $profile->membership_type === 'member' && $profile->membership_start_date ? date('d M Y', strtotime($profile->membership_start_date)) : '--'], ] as [$icon, $label, $value])
  • {{ $label }} : {{ $value }}
  • @endforeach
{{-- ── Tab 2 : Timeline ───────────────────────── --}} {{-- ── Tab 3 : Family ─────────────────────────── --}} {{-- ── Tab 4 : Assigned Groups ─────────────────── --}} {{-- ── Tab 5 : Messages ───────────────────────── --}} {{-- ── Tab 6 : Notes (keep Vue — complex CRUD) ── --}} {{-- ── Tab 6 : Notes (ID Card) ── --}}
{{-- end profile tabs --}}
@endsection @push('scripts') @endpush