@extends('layouts.app', ['title' => __('User Profile')]) @section('content') @include('users.partials.header', [ 'title' => "", ])

{{ __('Edit Profile') }}

@csrf @method('put')
{{ __('User information') }}
@if (session('status')) @endif
@include('partials.fields',['fields'=>$appFields])
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if ($errors->has('email')) {{ $errors->first('email') }} @endif
@if ($errors->has('phone')) {{ $errors->first('phone') }} @endif

@csrf @method('put')
{{ __('Password') }}
@if (session('password_status')) @endif
@if ($errors->has('old_password')) {{ $errors->first('old_password') }} @endif
@if ($errors->has('password')) {{ $errors->first('password') }} @endif
@if(auth()->user()->hasRole('owner')||auth()->user()->hasRole('client'))
@csrf @method('delete')
@endif
@include('layouts.footers.auth')
@endsection @section('js') @endsection