@extends('portal::layouts.customer') @section('title', __('portal::lang.communications')) @section('content')

@lang('portal::lang.communications')

@lang('portal::lang.communications_help')

@if($specialists->isEmpty())

@lang('portal::lang.no_specialist_assigned')

@if(!empty($support_phone)) @lang('portal::lang.call_support') @endif
@else @if(!empty($presenceEnabled) && $onlineSpecialists->isNotEmpty())

@lang('portal::lang.online_specialists') {{ $onlineSpecialists->count() }}

@foreach($onlineSpecialists as $specialist) @include('portal::customer.communications.partials.specialist_card', compact('specialist', 'chatEnabled', 'presenceEnabled')) @endforeach
@endif

@lang('portal::lang.all_specialists')

@foreach($specialists as $specialist) @include('portal::customer.communications.partials.specialist_card', compact('specialist', 'chatEnabled', 'presenceEnabled')) @endforeach
@endif @if(!empty($support_phone) && $specialists->isNotEmpty())

@lang('portal::lang.general_support_line')

{{ $support_phone }}
@endif
@endsection @if(!empty($presenceEnabled) && $specialists->isNotEmpty()) @section('javascript') @endsection @endif