@extends('layouts.app') @section('content')
User Profile

Manage your account information and security settings

@if(session('status') === 'profile-updated') @endif @if(session('status') === 'void-code-updated') @endif
Profile Information
@csrf @method('PATCH')
@error('name')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
@if(Auth::user()->company)
@endif
Change Password
@csrf @method('PUT')
@error('current_password', 'updatePassword')
{{ $message }}
@enderror
@error('password', 'updatePassword')
{{ $message }}
@enderror
@error('password_confirmation', 'updatePassword')
{{ $message }}
@enderror
{{-- Only the company owner has a void code, and only they can set it — it is what authorizes every billing void in the company. --}} @if(Auth::user()->isCompanyOwner())
Void Authorization Code

This 6-digit code authorizes every billing void in {{ Auth::user()->company->name ?? 'your company' }} — including voids performed by a company admin, who must ask you for it. Keep it private.

@if(Auth::user()->void_code)

Code is set @if(Auth::user()->void_code_updated_at) Last changed {{ Auth::user()->void_code_updated_at->format('M d, Y') }} @endif

@else
No code set yet — no billing can be voided until you set one.
@endif
@csrf @method('PUT')
@error('current_password', 'voidCode')
{{ $message }}
@enderror
@error('void_code', 'voidCode')
{{ $message }}
@enderror
@endif
Danger Zone

Once you delete your account, there is no going back. Please be certain.

@endsection