@extends('layouts.user_type.auth') @section('content')

User Details

@if ($user)
{{-- User Info --}}
User Information
  • Name: {{ $user->name }}
  • Email: {{ $user->email }}
  • Phone: {{ $user->phone }}
  • Location: {{ $user->location }}
  • Email Verified: @if($user->email_verified_at) Verified @else Not Verified @endif
{{-- Subscription Info --}}
Subscription Details
@if ($subscription)
  • Subscription ID: {{ $subscription->subscription_id }}
  • Start Date: {{ $subscription->starts_at }}
  • End Date: {{ $subscription->ends_at }}
  • Subscription Status: @if(\Carbon\Carbon::parse($subscription->ends_at)->isPast()) Expired @else Active @endif
@else

No active subscription found.

{{-- Assign Plan Button (opens modal) --}} @endif
{{-- Plan Info --}}
Plan Information
@if ($subscription)
  • Plan Name: {{ $subscription->plan_name }}
  • Plan Price: ${{ number_format($subscription->plan_price, 2) }}
  • Plan Duration: {{ $subscription->plan_duration }} Days
@else

No plan associated with this subscription.

@endif
{{-- Payments --}}
Payment History
@if ($payments->isNotEmpty())
@foreach ($payments as $payment) @endforeach
Payment ID Transaction ID Amount Payment Method Status Date
{{ $payment->id }} {{ $payment->transaction_id }} ${{ number_format($payment->amount, 2) }} {{ ucfirst($payment->payment_method) }} {{ ucfirst($payment->status) }} {{ \Carbon\Carbon::parse($payment->created_at)->format('d M Y') }}
@else

No payment records found.

@endif
@else
User not found.
@endif
{{-- Modal for Assign Plan & Card --}} @endsection