@extends('dashboard.layouts.app') @section('title', __('dashboard.Edit Profile')) @section('page_heading', __('dashboard.Edit Profile')) @section('breadcrumb') @endsection @section('content')

{{ __('dashboard.Edit Profile') }}

@csrf @method('PUT')
@error('first_name')
{{ $message }}
@enderror
@error('last_name')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
@error('phone')
{{ $message }}
@enderror
@error('country')
{{ $message }}
@enderror
@error('preferred_currency')
{{ $message }}
@enderror
@error('language')
{{ $message }}
@enderror
@error('avatar')
{{ $message }}
@enderror @if($user->avatar)
{{ $user->name }}
@endif
{{-- Conditional Fields based on Account Type --}}
@if($user->account_type === 'employee') @include('dashboard.users.profile.fields.employee') @elseif($user->account_type === 'teacher') @include('dashboard.users.profile.fields.teacher') @elseif($user->account_type === 'tester') @include('dashboard.users.profile.fields.tester') @elseif($user->account_type === 'company') @include('dashboard.users.profile.fields.company') @elseif($user->account_type === 'distributor') @include('dashboard.users.profile.fields.distributor') @elseif($user->account_type === 'affiliate_marketer') @include('dashboard.users.profile.fields.affiliate_marketer') @elseif($user->account_type === 'student') @include('dashboard.users.profile.fields.student') @endif
@endsection