@php if($user->hasRole(['super-admin', 'admin'])) { $layoutDirectory = 'layouts.app'; } else { $layoutDirectory = 'layouts.customer'; } @endphp @extends($layoutDirectory) @section('title', 'Account settings') @push('css') @endpush @section('content')

Password and Authentication

@cannot('access-admin-panel')
@include('profile.menu')
@endcannot
Change Password
@method('PUT') @csrf
@error('username') {{ $message }} @enderror
@error('old_password') {{ $message }} @enderror
@error('password') {{ $message }} @enderror
@error('password_confirmation') {{ $message }} @enderror
@endsection