@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') }} {{ trans('public.from') }} {{ trans('public.to') }} @if(!$authUser->isUser()) {{ trans('public.user_role') }} {{ trans('public.all_roles') }} get('role') == 'student') selected @endif >{{ trans('quiz.student') }} get('role') == 'teacher') selected @endif >{{ trans('panel.teacher') }} {{ trans('public.students') }} {{ trans('public.all') }} @foreach($students as $student) get('student') == $student->id) selected @endif>{{ $student->full_name }} @endforeach @endif {{ trans('home.teachers') }} {{ trans('public.all') }} @foreach($teachers as $teacher) get('teacher') == $teacher->id) selected @endif>{{ $teacher->full_name }} @endforeach {{ trans('product.courses') }} {{ trans('public.all') }} @foreach($webinars as $webinar) get('webinar') == $webinar->id) selected @endif>{{ $webinar->title }} @if(in_array($webinar->id,$purchasedWebinarsIds)) ({{ trans('panel.purchased') }}) @endif @endforeach {{ trans('public.status') }} {{ trans('public.all') }} get('status') == 'open') selected @endif >{{ trans('public.open') }} get('status') == 'close') selected @endif >{{ trans('public.close') }} get('status') == 'replied') selected @endif >{{ trans('panel.replied') }} {{ trans('public.show_results') }} {{ trans('panel.messages_history') }} @if(!empty($supports) and !$supports->isEmpty()) {{ trans('navbar.contact') }} {{ trans('public.title') }} {{ trans('public.status') }} @foreach($supports as $support) {{ (!empty($support->webinar) and $support->webinar->teacher_id != $authUser->id) ? $support->webinar->teacher->full_name : $support->user->full_name }} {{ (!empty($support->webinar) and $support->webinar->teacher_id != $authUser->id) ? trans('panel.teacher') : ( ($support->user->isUser()) ? trans('quiz.student') : trans('panel.staff')) }} @if($authUser->isUser()) {{ $support->title }} {{ truncate((!empty($support->webinar)) ? $support->webinar->title : '', 20) }} | {{ (!empty($support->conversations) and count($support->conversations)) ? dateTimeFormat($support->conversations->first()->created_at,'j M Y | H:i') : dateTimeFormat($support->created_at,'j M Y | H:i') }} @else {{ $support->title }} {{ (!empty($support->conversations) and count($support->conversations)) ? dateTimeFormat($support->conversations->first()->created_at,'j M Y | H:i') : dateTimeFormat($support->created_at,'j M Y | H:i') }} @endif @if($support->status == 'close') {{ trans('panel.closed') }} @elseif($support->status == 'supporter_replied') {{ trans('panel.replied') }} @else {{ trans('public.waiting') }} @endif @endforeach @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() }} {{ trans('site.message') }} {{ old('message') }} @error('message') {{ $message }} @enderror {{ trans('panel.attach_file') }} {{ trans('site.send_message') }} @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
{{ $conversations->message }}