@extends('layout') @section('content') @php $editing = $client !== null; $action = $editing ? '/clientes/'.$client->id : '/clientes'; $cancel = $editing ? '/clientes/'.$client->id : '/clientes'; $avatarUrl = uploaded_image_url($client->avatar_path ?? null); @endphp
@include('partials.context-back')

{{ $editing ? 'Editar cliente' : 'Novo cliente' }}

@csrf @if ($editing) @method('PUT') @endif @if ($asaasCustomer)
sync Cadastro vinculado ao Asaas: nome, e-mail, telefone e documento são atualizados por ele. Os campos internos do OmniAURIOS continuam editáveis.
@endif
{!! field_error('name') !!}
{!! field_error('company') !!}
@if ($avatarUrl !== null)Foto de {{ $client->name ?? '' }}@elseperson@endif
{!! field_error('avatar') !!}
{!! field_error('email') !!}
{!! field_error('cliente_desde') !!}
@include('partials.rich-editor', [ 'richEditorId' => 'client-notes', 'richEditorName' => 'notes', 'richEditorValue' => field_raw_value($client, 'notes'), 'richEditorMaxlength' => 4000, 'richEditorPlaceholder' => 'Contexto, necessidades e próximos passos…', 'richEditorHint' => 'Formatação simples para organizar o histórico do cliente.', ]) {!! field_error('notes') !!}
Cancelar
@endsection