@extends('layouts.main') @section('breadcrumb') @include('admin.account.parts.breadcrumb_accounts_index') @if ($account->id) @include('admin.account.parts.breadcrumb_accounts_edit', ['account' => $account]) @else @endif @endsection @section('content') @if ($account->id)

users {{ $account->identifier }}

trash {{ __('Delete') }}
@if ($account->updated_at)

{{ __('Updated on') }} {{ $account->updated_at->format('d/m/Y') }} @endif @include('admin.account.parts.tabs') @else

users {{ __('Create') }}

{{ __('Cancel') }}
@endif
@csrf @method($account->id ? 'put' : 'post')
id) readonly @endif> @include('parts.errors', ['name' => 'username'])
@include('parts.errors', ['name' => 'display_name'])
id) required @endif> {{ __('Fill to change') }} @include('parts.errors', ['name' => 'password'])
id) required @endif> @include('parts.errors', ['name' => 'password_confirmation'])
@include('parts.errors', ['name' => __('email')]) @if (!empty($account->email))

{{ __('Send an email to the user to reset the password') }}

@endif
@include('parts.errors', ['name' => 'phone'])

{{ __('Other information') }}

@include('parts.form.toggle', ['object' => $account, 'key' => 'blocked', 'label' => __('Blocked')]) @include('parts.form.toggle', ['object' => $account, 'key' => 'activated', 'label' => __('Enabled')])
admin) checked @endif>

{{ __('Admin') }}

admin) checked @endif>

{{ __('User') }}

@if (space()?->intercom_features)
@endif

@if ($account->id)

{{ __('Contacts') }}

@foreach ($account->contacts as $contact)

{{ $contact->identifier }} x

@endforeach {{ __('Add') }}

{{ __('Contacts Lists') }}

@if ($contacts_lists->isNotEmpty())
@csrf @method('post')

@endif @foreach ($account->contactsLists as $contactsList)

{{ $contactsList->title }} x

@endforeach

{{ __('Provisioning') }}

@if ($account->provisioning_token)
{{ __('The link can only be visited once') }}
{{ __('Renew') }}
@else {{ __('Create') }} @endif @if (space()?->intercom_features))

{{ __('Actions') }}

@if ($account->dtmf_protocol) @foreach ($account->actions as $action) @endforeach
{{ $action->key }} {{ $action->code }} {{ __('Edit') }} {{ __('Delete') }}
{{ __('Add') }} @else

To manage actions, you must configure the DTMF protocol in the account settings.

@endif

{{ __('Types') }}

@foreach ($account->types as $type) @endforeach
{{ $type->key }}
@csrf @method('delete')
{{ __('Add') }} @endif @endif @endsection