@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 ═══ --}}
{{-- ═══ TAB 2: Password ═══ --}}
{{-- ═══ TAB 3: Subscription ═══ --}}
{{-- Current subscription --}}
@if($member->subscription && $member->subscription->isActive())
| {{ 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
|
@else
⚠️ {{ t('لا يوجد اشتراك نشط حالياً','No active subscription currently') }}
@endif
{{-- Add / Change subscription --}}
@endsection
@section('scripts')
@endsection