@extends(getTemplate() .'.panel.layouts.panel_layout') @push('styles_top') @endpush @section('content')

{{ trans('panel.support_summary') }}

{{ $openSupportsCount }} {{ trans('panel.open_conversations') }}
{{ $closeSupportsCount }} {{ trans('panel.closed_conversations') }}
{{ $supportsCount }} {{ trans('panel.total_conversations') }}

{{ trans('panel.message_filters') }}

@if(!$authUser->isUser())
@endif

{{ trans('panel.messages_history') }}

@if(!empty($supports) and !$supports->isEmpty())
@if(!empty($selectSupport))
{{ $selectSupport->title }} {{ trans('public.created') }}: {{ dateTimeFormat($support->created_at,'j M Y | H:i') }} @if(!empty($selectSupport->webinar)) {{ trans('webinars.webinar') }}: {{ $selectSupport->webinar->title }} @endif
@if($selectSupport->status != 'close') {{ trans('panel.close_request') }} @endif
@if(!empty($selectSupport->conversations) and !$selectSupport->conversations->isEmpty()) @foreach($selectSupport->conversations as $conversations)
{{ (!empty($conversations->supporter)) ? $conversations->supporter->full_name : $conversations->sender->full_name }} {{ (!empty($conversations->supporter)) ? trans('panel.staff') : $conversations->sender->role_name }}
{{ dateTimeFormat($conversations->created_at,'j M Y | H:i') }} @if(!empty($conversations->attach)) {{ trans('panel.attach') }} @endif

{{ $conversations->message }}

@endforeach @endif

{{ trans('panel.reply_to_the_conversation') }}

{{ csrf_field() }}
@error('message')
{{ $message }}
@enderror
@else
@include(getTemplate() . '.includes.no-result',[ 'file_name' => 'support.png', 'title' => trans('panel.select_support'), 'hint' => nl2br(trans('panel.select_support_hint')), ])
@endif
@else @include(getTemplate() . '.includes.no-result',[ 'file_name' => 'support.png', 'title' => trans('panel.support_no_result'), 'hint' => nl2br(trans('panel.support_no_result_hint')), ]) @endif
@endsection @push('scripts_bottom') @endpush