@extends('layouts.app') @section('content') @php $canEditPartner = auth()->check() && auth()->user()->hasPermission('partners', 'edit'); $canDeletePartner = auth()->check() && auth()->user()->hasPermission('partners', 'delete'); $profileImage = $user->getFirstMediaUrl('profile', 'thumb') ?: $user->getFirstMediaUrl('profile'); $coverImage = $user->getFirstMediaUrl('cover'); $galleryMedia = $user->getMedia('album'); @endphp
@if($profileImage) Profile Image @else
@endif

{{ $user->name }}

#{{ $user->id }} | {{ $user->email }}

{{ trim(($user->phone_country_code ?? '') . ' ' . ($user->phone_no ?? '')) }}

{{ ucfirst($user->status) }}
Account Type: {{ ucfirst(str_replace('_', ' ', $user->account_type)) }}
Created: {{ optional($user->created_at)->format('d M Y, h:i A') }}
Partner Quick Management
ID #{{ $user->id }}

Email Verified {{ $user->email_verified_at ? 'Yes (' . \Carbon\Carbon::parse($user->email_verified_at)->format('d M Y, h:i A') . ')' : 'No' }}
Phone Verified {{ $user->phone_no_verified_at ? 'Yes (' . \Carbon\Carbon::parse($user->phone_no_verified_at)->format('d M Y, h:i A') . ')' : 'No' }}
Basic Info
Name: {{ $user->name }}
Email: {{ $user->email ?: '-' }}
Phone: {{ trim(($user->phone_country_code ?? '') . ' ' . ($user->phone_no ?? '')) ?: '-' }}
Status: {{ ucfirst($user->status) }}
Created At: {{ optional($user->created_at)->format('d M Y, h:i A') ?: '-' }}
Updated At: {{ optional($user->updated_at)->format('d M Y, h:i A') ?: '-' }}
Verification & Status
KYC Status: {{ ucfirst(str_replace('_', ' ', $user->kyc_status ?? 'not_submitted')) }}
Partner Status: {{ ucfirst(str_replace('_', ' ', $user->partner_status ?? 'not_applied')) }}
Personal
Gender: {{ ucfirst(optional($user->profile)->gender ?? '-') }}
Date of Birth: {{ optional(optional($user->profile)->date_of_birth)->format('d M Y') ?: (optional($user->profile)->date_of_birth ?? '-') }}
Availability Status: {{ ucfirst(optional($user->profile)->availability_status ?? '-') }}
Cover Photo: @if($coverImage)
Cover Photo
@else - @endif
Languages
@if($user->languages->count())
@foreach($user->languages as $language) {{ $language->name }} @endforeach
@else No languages added. @endif
Bio

{{ optional($user->profile)->bio ?: 'No bio available.' }}

Location
Country: {{ optional(optional($user->address)->country)->name ?: '-' }}
State: {{ optional(optional($user->address)->state)->name ?: '-' }}
City: {{ optional(optional($user->address)->city)->name ?: '-' }}
Address: {{ optional($user->address)->address ?: '-' }}
Pin Code: {{ optional($user->address)->pin_code ?: '-' }}
Coordinates
Latitude: {{ optional($user->address)->current_latitude ?: '-' }}
Longitude: {{ optional($user->address)->current_longitude ?: '-' }}
@if($canEditPartner) @endif @endsection