@if(!$selectedDevice)
{{__('Belum ada device yang terhubung dengan Meta Cloud API.')}}
@elseif(blank($selectedDevice->meta_bot_id))
{{__('Device ini belum memiliki Meta Bot ID. Silakan atur Meta Bot ID di halaman ')}}
{{__('Connect with Meta')}}
{{__(' terlebih dahulu.')}}
@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)
{{__('Gagal mengambil bot details dari Meta')}}
{{ $botDetailsError }}
@endif
@if(!empty($botDetails['prompts']))
@foreach($botDetails['prompts'] as $prompt)
{{ $prompt }}
@endforeach
@endif
@if(!empty($botDetails['commands']))
| {{__('Command')}} |
{{__('Description')}} |
@foreach($botDetails['commands'] as $command)
{{ $command['command_name'] ?? '-' }}
|
{{ $command['command_description'] ?? '-' }} |
@endforeach
@endif
@if($botDetails)
{{ json_encode($botDetails, JSON_PRETTY_PRINT) }}
@endif
@endif