@extends('layouts.app') @section('title', 'Channel Details') @section('content')

Channel Details

Back
{{ $channel->name }}

Channel Type:
@if($channel->channel_type == 'email') Email @else WhatsApp @endif

Identifier:
{{ $channel->channel_type == 'email' ? $channel->username : $channel->phone_number }}

Status:
{{ ucfirst($channel->status) }}

Ticket Source:
{{ $channel->ticketSource->name ?? '--' }}

Queue:
{{ $channel->queue->name ?? '--' }}

Last Sync:
{{ $channel->last_sync_at ? formatDateTime($channel->last_sync_at) : '--' }}

Created On:
{{ formatDateTime($channel->created_at) }}

@if($channel->channel_type == 'email')
Email Settings

Inbound: @if($channel->is_inbound) Yes @else No @endif

Outbound: @if($channel->is_outbound) Yes @else No @endif

@else
WhatsApp Settings

Provider:
{{ ucfirst(str_replace('_', ' ', $channel->provider)) }}

Business Account ID:
{{ $channel->business_account_id ?? '--' }}

@endif

@endsection @push('scripts') @endpush