@extends('layout') @section('content') @php $editing = $system !== null; $internalSystem = $system?->isInternal() ?? false; $agentAccentColor = old('accent_color', $system?->aurelio_accent_color); if (!\App\Services\Appearance::isHex((string) $agentAccentColor)) { $agentAccentColor = \App\Services\Appearance::accent(); } @endphp
@include('partials.context-back')

{{ $editing ? 'Editar solução' : 'Nova solução' }}

@csrf @if($editing) @method('PUT') @endif
{!! field_error('name') !!}
@unless($internalSystem) @php $selectedClientIds = array_values(array_unique(array_map('intval', (array) old('client_ids', $system ? ($system->is_saas ? $system->clients->modelKeys() : array_values(array_filter([(int) $system->client_id]))) : [])))); $selectedClients = $clients->whereIn('id', $selectedClientIds)->sortBy('name')->values(); $availableClients = $clients->where('status', 'ativo')->whereNotIn('id', $selectedClientIds)->sortBy('name')->values(); @endphp
Selecione os clientes que utilizam esta solução. Ao remover, pediremos confirmação.
@foreach($selectedClients as $client) @endforeach

Nenhum cliente vinculado.

{!! field_error('client_ids') !!}
@endunless
@if($system?->logo_path)@elseapps@endif
O resumo aparece no catálogo. A IA sugere um texto para você revisar antes de salvar. {!! field_error('summary') !!}
@include('partials.rich-editor', ['richEditorId' => 'system-description', 'richEditorName' => 'description', 'richEditorValue' => field_raw_value($system, 'description'), 'richEditorMaxlength' => 4000, 'richEditorPlaceholder' => 'Contexto, escopo e como a solução funciona…'])
@include('partials.rich-editor', ['richEditorId' => 'system-sales-description', 'richEditorName' => 'sales_description', 'richEditorValue' => field_raw_value($system, 'sales_description'), 'richEditorMaxlength' => 6000, 'richEditorPlaceholder' => 'Mensagem comercial pronta para leads…'])
@if($editing)

Aurélio desta solução

@if($system->isInternal())
neurology Gerenciar provedor e modelo globalO Aurélio interno sempre herda essa configuração.
@else
Escolha “Padrão do provedor” para acompanhar o modelo global quando o provedor também herdar o OPS.
@endif
@endif
Cancelar
@if($editing) @endif @endsection