@extends('teacher.layouts.container') @section('content')

{{ $head ?? '' }}

@method('PUT') @CSRF
@if(in_array('name', $moduleFields))
@endif @if(in_array('email', $moduleFields))
{{-- ($user->email ?? null) ? "readonly" : "" --}}
@endif @if(in_array('phone', $moduleFields)) @php $phoneValue = old("phone", $user->phone ?? ""); $countryCodeValue = old("country_code", $user->country_code ?? ""); $phoneFormats = formatPhoneNumber($phoneValue, $countryCodeValue); $phoneNewValue = $phoneFormats['e164'] ?? null; @endphp
@endif
@if(in_array('password', $moduleFields))
@endif @if(!in_array($routeName, ['users', 'teachers']))
@endif @if(in_array($routeName, ['providers', 'reps'])) @include('admin.partials._upload_photo', ['item_value'=>old('photo', $user->photo ?? ''), 'label_name'=>meta('photo', $lang) ?? __("users::$routeName.photo"), 'input_name'=>'photo', 'parent_class'=>'col-lg-6']) @endif @if($routeName == 'members') @include('admin.users::_members') @endif @if($routeName == 'providers') @include('admin.users::_providers', ['hiddenFields'=>array('is_distinctive')]) @endif @if($routeName == 'reps') @include('admin.users::_reps') @endif @includeWhen($routeName == 'teachers', 'admin.users::_teachers', ['editProfile' => true])
@includeWhen(in_array('photo', $moduleFields), 'admin.partials._upload_photo', [ 'item_value' => old('photo', $user->photo ?? ''), 'label_name' => meta('photo', $lang) ?? __("users::$routeName.photo"), 'input_name' => 'photo', 'parent_class' => 'col-lg-6' ])
@endsection @section('inner_js') @endsection