@extends('admin.layouts') @section('title', 'User Profile') @section('content')
Name: {{ $user->name }}
Email: {{ $user->email }}
Phone Number: {{ $user->phone_number }}
User ID: {{ $user->user_id }}
Address: @if ($currentAddress && ($currentAddress->building_name || $currentAddress->road_name || $currentAddress->landmark || $currentAddress->district || $currentAddress->state || $currentAddress->pin)) {{ $currentAddress->building_name ?? '' }} @if ($currentAddress->road_name) , {{ $currentAddress->road_name }} @endif @if ($currentAddress->landmark) , {{ $currentAddress->landmark }} @endif @if ($currentAddress->district) , {{ $currentAddress->district }} @endif @if ($currentAddress->state) , {{ $currentAddress->state }} @endif @if ($currentAddress->pin) - {{ $currentAddress->pin }} @endif @else Address not available @endif
Joining Date:{{ $user->created_at }}
{{ $user->is_active ? 'Deactivate Account' : 'Activate Account' }} Edit AccountPlan Name: {{ $membership->title ?? 'not subscribed' }}
User ID: {{ $user->user_id }}
Membership ID: {{ $user->membership }}
Under User ID: {{ $user->referral_id ?? 'AdBazzar'}}
Status: {{ $user->is_active ? 'Active' : 'Inactive' }}
{{--Expiry Date: {{ $user->subscription_end_date ? \Carbon\Carbon::parse($user->subscription_end_date)->format('d/m/Y') : 'N/A' }}
Remaining Days: @if ($user->subscription_end_date) {{ intval(now()->diffInDays($user->subscription_end_date)) }} Days @else N/A @endif
--}}Expiry Date: {{ $expiryDate->format('d/m/Y') }}
Remaining Days: {{ $remainingDays > 0 ? $remainingDays . ' Days' : 'Expired' }}
| # | Plan Name | Status | Subscribed On |
|---|---|---|---|
| {{ $index + 1 }} | {{ $subscription->title ?? 'N/A' }} | {{ $subscription->is_active ? 'Active' : 'Inactive' }} | {{ \Carbon\Carbon::parse($subscription->created_at)->format('d-m-Y') }} |
No subscriptions found.
@endif| S/N | User ID | Name | Membership | Phone No | Created At | Expiry Date |
|---|---|---|---|---|---|---|
| {{ $index + 1 }} | {{ $user->user_id }} | {{ $user->name }} | {{ $user->membershipRelation ? $user->membershipRelation->title : '-' }} | {{ $user->phone_number }} | {{ \Carbon\Carbon::parse($user->created_at)->format('d-m-Y') }} | {{ \Carbon\Carbon::parse($user->subscription_end_date)->format('d-m-Y') }} |