@php $hasVoiceFile = false; if(!empty($details['voice_file'])) { $voiceFile = 'voices/'.$details['voice_file']; if (\Storage::disk('public')->has($voiceFile)) { $hasVoiceFile = true; } } @endphp @extends('layouts.master') @section('css') @endsection @section('content')
@hasrole('super-admin') Back @else Config Edit @endhasrole
@if ($message = Session::get('success'))
{{ $message }}
@endif
Show Company
@if (!empty($details['twilio_auth_token']))
ID: {{ $details['id'] }}
Name: {{ $details['name'] }}
TWILIO ACCOUNT SID: {{ $details['twilio_account_sid'] }}
TWILIO AUTH TOKEN: {{ $details['twilio_auth_token'] }}
TWILIO NUMBER: {{ $details['twilio_number'] }}
{{--
TWILIO APPLICATION SID: {{ $details['twilio_application_sid'] }}
--}}
TWILIO API KEY: {{ $details['twilio_api_key'] }}
TWILIO API SECRET: {{ $details['twilio_api_secret'] }}
@if ($hasVoiceFile)
Voice MP3:
@endif
Voice Message: {{ $details['voice_message'] ?? '' }}
Text Message: {{ $details['text_message'] ?? '' }}
Phone Numbers / Webhooks:
A CALL COMES IN: {{ route('incoming-call-handler', ['secret_key' => getEncryptedTextForCompany($details['id'])]) }}
CALL STATUS CHANGES: {{ route('voice-callback-inbound') }}
TwiML Apps / Webhooks:
Voice / REQUEST URL: {{ route('new-call', $details['twilio_number']) }}
@else
Your company account still needs to be set up.  @hasrole('user') Please get in touch with your Admin. @else @hasrole('super-admin') Please go to Edit Company and set up the company. @else Please go to Edit Company and set up the company. @endhasrole @endhasrole
@endif
@endsection @section('javascript') @endsection