@extends('layouts.admin') @section('title', 'Modifier Étudiant - MentoraMind Admin') @section('description', 'Modification de l\'étudiant') @section('content')
{{ __('admin.students.edit.information') }}
@csrf @method('PUT')
@php $phoneNumber = $customer->user->phone_number ?? ''; $phoneWithoutCode = $phoneNumber; $currentCountryCode = null; foreach (\App\Enums\CountryCode::cases() as $country) { if (str_starts_with($phoneNumber, $country->value)) { $phoneWithoutCode = substr($phoneNumber, strlen($country->value)); $currentCountryCode = $country->value; break; } } @endphp
{{ __('admin.students.edit.password_hint') }}
{{ __('admin.students.edit.cancel') }}
{{ __('admin.students.edit.info') }}
{{ __('admin.students.detail.created_at') }}

{{ $customer->created_at->format('d F Y') }}

{{ __('admin.students.edit.last_modified') }}

{{ $customer->updated_at->format('d F Y') }}

{{ __('admin.students.table.subscription') }} @if($customer->user && $customer->user->subscriptions && $customer->user->subscriptions->isNotEmpty()) @php $subscription = $customer->user->subscriptions->sortByDesc('created_at')->first(); $planName = $subscription->subscriptionPlan->name ?? 'N/A'; $badgeClass = match(strtolower($planName)) { 'premium' => 'bg-primary', 'classic' => 'bg-warning text-dark', default => 'bg-secondary' }; @endphp {{ $planName }} @else - @endif
@endsection @push('scripts') @endpush