@if (session()->has('alert')) @slot('type', session('alert')['type']) @slot('msg', session('alert')['msg']) @endif

{{__('WhatsApp Business Bot Details')}}

@csrf
@if(!$selectedDevice)

{{__('Belum ada device yang terhubung dengan Meta Cloud API.')}}

@elseif(blank($selectedDevice->meta_bot_id)) @else
{{__('Bot ID')}}

{{ $botDetails['id'] ?? $selectedDevice->meta_bot_id }}

{{__('Unique identifier for WhatsApp Business Bot.')}}

{{__('Welcome Message')}}

@if(($botDetails['enable_welcome_message'] ?? null) === true) {{__('Enabled')}} @elseif(($botDetails['enable_welcome_message'] ?? null) === false) {{__('Disabled')}} @else {{__('N/A')}} @endif

{{__('Status fitur pesan selamat datang otomatis.')}}

{{__('Total Commands')}}

{{ count($botDetails['commands'] ?? []) }}

{{__('Jumlah perintah bot yang tersedia untuk user.')}}

@if($botDetailsError)
@endif @if(!empty($botDetails['prompts']))
{{__('Daftar Prompt Bot')}}
@foreach($botDetails['prompts'] as $prompt)
{{ $prompt }}
@endforeach
@endif @if(!empty($botDetails['commands']))
{{__('Daftar Perintah Bot')}}
@foreach($botDetails['commands'] as $command) @endforeach
{{__('Command')}} {{__('Description')}}
{{ $command['command_name'] ?? '-' }} {{ $command['command_description'] ?? '-' }}
@endif @if($botDetails)
{{__('JSON Response from Meta Graph API')}}
{{ json_encode($botDetails, JSON_PRETTY_PRINT) }}
@endif
@endif