@extends('admin.layouts.app') @push('libraries_top') @endpush @section('content')

{{ trans('admin/main.supports') }}

{{trans('admin/main.total_conversations')}}

{{ $totalConversations }}

{{trans('admin/main.pending_reply')}}

{{ $pendingReplySupports }}

{{trans('admin/main.open_conversations')}}

{{ $openConversationsCount }}

{{trans('admin/main.closed_conversations')}}

{{ $closeConversationsCount }}
@foreach($supports as $support) @endforeach
{{trans('admin/main.title')}} {{trans('admin/main.created_date')}} {{trans('admin/main.last_update')}} {{trans('admin/main.user')}} {{trans('admin/main.role')}} {{trans('admin/main.department')}} {{trans('admin/main.status')}} {{trans('admin/main.actions')}}
{{ $support->title }} {{ dateTimeFormat($support->created_at,'j M Y | H:i') }} {{ (!empty($support->updated_at)) ? dateTimeFormat($support->updated_at,'j M Y | H:i') : '-' }} {{ $support->user->full_name }} @if($support->user->isUser()) Student @elseif($support->user->isTeacher()) Teacher @elseif($support->user->isOrganization()) Organization @endif {{ $support->department->title }} @if($support->status == 'close') {{ trans('admin/main.close') }} @elseif($support->status == 'replied' or $support->status == 'open') {{trans('admin/main.pending_reply')}} @else {{trans('admin/main.replied')}} @endif @can('admin_supports_reply') @endcan @can('admin_supports_delete') @include('admin.includes.delete_button',['url' => getAdminPanelUrl().'/supports/'.$support->id.'/delete' , 'btnClass' => 'btn-sm']) @endcan
@endsection @push('scripts_bottom') @endpush