@extends('layouts.tenant') @section('title', 'Edit Client - ' . $client->name) @section('content')

Edit Client

Update {{ $client->name }}'s information and settings

@if(session('success'))
Success! {{ session('success') }}
@endif @if(session('error'))
Error! {{ session('error') }}
@endif @if($errors->any())
Please fix the following errors:
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf @method('PUT')

Basic Information

@error('name')

{{ $message }}

@enderror
@error('email')

{{ $message }}

@enderror
@error('phone')

{{ $message }}

@enderror
@error('company')

{{ $message }}

@enderror
@error('tax_id')

{{ $message }}

@enderror
@error('status')

{{ $message }}

@enderror

Address Information

@error('address')

{{ $message }}

@enderror
@error('city')

{{ $message }}

@enderror
@error('state')

{{ $message }}

@enderror
@error('zip_code')

{{ $message }}

@enderror
@error('country')

{{ $message }}

@enderror

Additional Notes

@error('notes')

{{ $message }}

@enderror
@if($client->status !== 'archived') @endif

Client Statistics

{{ $client->documents()->count() }}
Documents
{{ $client->invoices()->count() }}
Invoices
${{ number_format($client->total_invoices_amount ?? 0, 2) }}
Total Revenue
{{ $client->chatMessages()->count() }}
Messages

Quick Tips

Email Validation: Make sure the email address is correct as it will be used for invoice delivery and notifications.
Status Changes: Changing status to "Archived" will hide the client from active lists but preserve all data.
Tax ID: Adding a Tax ID helps with invoice generation and compliance reporting.

Recent Activity

Client Created
{{ $client->created_at->format('M d, Y \a\t g:i A') }}
@if($client->updated_at != $client->created_at)
Last Updated
{{ $client->updated_at->format('M d, Y \a\t g:i A') }}
@endif
@endsection @push('scripts') @endpush