@extends('layouts.customer') @section('title', __('Settings')) @section('page-title', __('Settings')) @section('content')

{{ __('Account') }}

{{ __('Basic account settings are managed from your profile page.') }}

{{ __('Edit Profile') }} {{ __('Billing') }}

{{ __('Email & Password') }}

{{ __('Manage your sign-in credentials.') }}

{{ __('Email') }}

@csrf @method('PUT')
@error('email', 'updateEmail')

{{ $message }}

@enderror
@customercan('settings.permissions.can_edit_settings') {{ __('Update Email') }} @endcustomercan

{{ __('Password') }}

@csrf @method('PUT')
@error('current_password', 'updatePassword')

{{ $message }}

@enderror
@error('password', 'updatePassword')

{{ $message }}

@enderror
@customercan('settings.permissions.can_edit_settings') {{ __('Update Password') }} @endcustomercan

{{ __('Preferences') }}

@csrf @method('PUT')
@error('timezone')

{{ $message }}

@enderror
@error('openai_api_key')

{{ $message }}

@enderror
@error('gemini_api_key')

{{ $message }}

@enderror
@error('ai_own_daily_limit')

{{ $message }}

@enderror

{{ __('Usage today:') }} {{ (int) ($customer->ai_own_daily_usage ?? 0) }} / {{ ((int) ($customer->ai_own_daily_limit ?? 0)) > 0 ? (int) ($customer->ai_own_daily_limit ?? 0) : __('Unlimited') }}

@error('ai_own_monthly_limit')

{{ $message }}

@enderror

{{ __('Usage this month:') }} {{ (int) ($customer->ai_own_monthly_usage ?? 0) }} / {{ ((int) ($customer->ai_own_monthly_limit ?? 0)) > 0 ? (int) ($customer->ai_own_monthly_limit ?? 0) : __('Unlimited') }}

@error('language')

{{ $message }}

@enderror
@customercan('settings.permissions.can_edit_settings') {{ __('Save Preferences') }} @endcustomercan
{{ __('Current Timezone:') }} {{ $customer->timezone ?? '—' }}
{{ __('Language:') }} {{ $customer->language ?? '—' }}
{{ __('Currency:') }} {{ $customer->currency ?? '—' }}
@endsection