@extends('layouts.dashboard') @section('title', t('تعديل','Edit').' — '.$member->name) @section('page-title','✏️ '.t('تعديل بيانات العضو','Edit Member Data')) @section('styles') @endsection @section('content')
{{-- Header --}}
{{ $member->name }}
{{ $member->email }}
{{ $member->status==='active'?'✅ نشط':'⛔ موقوف' }} @if($member->subscription && $member->subscription->isActive()) 💳 {{ $member->subscription->plan->name }} @else مجاني @endif {{ t('منذ','Since') }} {{ $member->created_at->format('Y-m-d') }}
← {{ t('رجوع','Back') }}
{{-- Tabs --}}
{{-- Alerts --}} @if($errors->any())
@foreach($errors->all() as $e)
❌ {{ $e }}
@endforeach
@endif {{-- ═══ TAB 1: Personal Info ═══ --}}

👤 {{ t('المعلومات الشخصية','Personal Information') }}

@csrf @method('PUT')
{{ t('انقر على الصورة لتغييرها','Click to change photo') }}
{{ t('إلغاء','Cancel') }}
{{-- ═══ TAB 2: Password ═══ --}}

🔐 {{ t('تغيير كلمة المرور','Change Password') }}

@csrf @method('PUT')
{{-- Quick generate password --}}
{{-- ═══ TAB 3: Subscription ═══ --}}
{{-- Current subscription --}} @if($member->subscription && $member->subscription->isActive())

✅ {{ t('الاشتراك الحالي','Current Subscription') }}

{{ t('نشط','Active') }}
{{ t('الخطة','Plan') }}{{ $member->subscription->plan->name }}
{{ t('License Key','License Key') }} {{ $member->subscription->license_key }}
{{ t('المواقع المسموحة','Sites') }}{{ $member->subscription->sites_allowed }}
{{ t('تنتهي','Expires') }} @if($member->subscription->expires_at) {{ $member->subscription->expires_at }} @if(\Carbon\Carbon::parse($member->subscription->expires_at)->isPast()) {{ t('منتهية!','Expired!') }} @endif @else ♾️ {{ t('مدى الحياة','Lifetime') }} @endif
⚙️ {{ t('إدارة الاشتراك الكامل','Manage Full Subscription') }}
@csrf
@else
⚠️ {{ t('لا يوجد اشتراك نشط حالياً','No active subscription currently') }}
@endif {{-- Add / Change subscription --}}

⬆️ {{ t('إضافة / تغيير الاشتراك','Add / Change Subscription') }}

@csrf
@foreach($plans->where('id','!=','free') as $plan) @endforeach
{{ t('اتركه فارغاً للحساب التلقائي','Leave empty for auto-calculate') }}
💡 {{ t('سيتم إلغاء الاشتراك الحالي وإنشاء اشتراك جديد تلقائياً','Current subscription will be cancelled and a new one created automatically') }}
@endsection @section('scripts') @endsection