@php $thresholdMeta = [ 'stale_opportunity_days' => ['icon' => 'clock', 'uses' => __('Stale reminders and every count of stale opportunities.')], 'dormant_account_days' => ['icon' => 'arrow-trending-down', 'uses' => __('Account Development: an account with no order for this long is put up for a dormant review. Nothing changes its lifecycle by itself.')], 'deleted_recovery_days' => ['icon' => 'archive-box-x-mark', 'uses' => __('Recently Deleted: how long a deleted record can still be restored there.')], 'import_undo_days' => ['icon' => 'arrow-up-tray', 'uses' => __('Client profile imports: how long an import can be undone, provided nobody has worked its records.')], 'response_owner_alert_hours' => ['icon' => 'clock', 'uses' => __('Response Times: a new enquiry with no call, email or message logged this long after it arrived alerts its owner. Counted in working hours.')], 'response_director_alert_hours' => ['icon' => 'bell-alert', 'uses' => __('Response Times: the same, this long after arrival, alerts the directors. Counted in working hours.')], 'reorder_prompt_weeks' => ['icon' => 'arrow-path', 'uses' => __('Reorder Predictions: the relationship owner gets a task this long before a client\'s next order is expected. A change applies from the next morning\'s run to every prediction nobody has been prompted about yet.')], ]; @endphp
@include('livewire.crm.settings.partials.nav', ['current' => 'crm.settings.index'])

{{ __('Lead form connection') }}

{{ __('Meta Lead Ads, Google lead forms, or a connector such as Zapier or Make posts to this address. A post without the token is refused and is not kept. Posts then show on Incoming Leads, and an enquiry is opened through the usual path.') }}

{{ __('Address') }}

{{ __('Token') }}

{{ __('Send it as Authorization: Bearer, or as the header X-BillPro-Token. The token is fixed for this workspace.') }}

  1. {{ __('Copy the address and the token.') }}
  2. {{ __('In Meta, Google, Zapier or Make, send each new lead here as JSON, with the token on the request.') }}
  3. {{ __('Include a name. A company, email, phone and message are used when they are present.') }}
  4. {{ __('Set the enquiry rota so the new enquiry has an owner. With no rota, it follows the enquiry owner on this page.') }}

{{ __('Thresholds') }}

{{ __('A change applies from now on. Nothing already recorded is altered.') }}

@foreach ($rows as $key => $row)

{{ $thresholdMeta[$key]['uses'] }}

{{ __($row['unit']) }} @if ((int) ($thresholds[$key] ?? 0) !== $row['default']) @endif
@endforeach
{{ __('Save thresholds') }} {{ __('Saving…') }}

{{ __('Notifications') }}

{{ __('What the CRM tells people, through the bell, the Action Centre and phone alerts. Each person turns phone alerts on for themselves under') }} {{ __('Notifications and app') }}.

{{ __('Owns every enquiry from the public request form, normally the Marketing Officer. With nobody named, enquiries go to :name, the company owner.', ['name' => $fallbackName ?? __('the company owner')]) }}

{{ __('Save enquiry owner') }}
@foreach ($notices as $notice) @endforeach
{{ __('Notice') }} {{ __('Who is told') }} {{ __('When') }}
{{ __($notice['what']) }} {{ __($notice['who']) }} {{ __($notice['when']) }}