@extends('admin/layouts/admin') @section('title', __('global.tickets')) @section('scripts') @endsection @section('content')
{{ __($widget->title) }}
{{ __('admin.dashboard.no_staff_stats') }}
@endforelse{{ __($translatePrefix . '.no_department_stats') }}
@endforelse{{ __($translatePrefix . '.tickets_active_description') }}
|
#
|
{{ __('helpdesk.subject') }}
|
{{ __('global.customer') }}
|
{{ __('helpdesk.priority') }}
|
{{ __($translatePrefix . '.last_reply') }}
|
{{ __($translatePrefix . '.last_update') }}
|
{{ __('global.actions') }} |
|---|---|---|---|---|---|---|
|
{{ __('global.no_results') }} |
@endif
@foreach($active_tickets ?? [] as $item)
||||||
| {{ $item->id }} | {{ $item->excerptSubject() }} | @if ($item->customer) {{ $item->customer->excerptFullName() }} @else {{ __('global.deleted') }} @endif |
|
@php($lastMessage = $item->messages->last()) @if ($lastMessage && $lastMessage->customer_id != null) @if ($lastMessage->customer) {{ $lastMessage->customer->excerptFullName() }} @else {{ __('global.deleted') }} @endif @elseif ($lastMessage && $lastMessage->admin_id != null) @if ($lastMessage->admin) {{ $lastMessage->admin->excerptFullName() }} @else {{ __('global.deleted') }} @endif @else -- @endif | {{ $item->updated_at != null ? $item->updated_at->format('d/m/y H:i') : 'None' }} | {{ __('global.show') }} |
{{ __($translatePrefix . '.tickets_to_reply_description') }}
|
#
|
{{ __('helpdesk.subject') }}
|
{{ __('global.customer') }}
|
{{ __('helpdesk.priority') }}
|
{{ __($translatePrefix . '.last_reply') }}
|
{{ __($translatePrefix . '.last_update') }}
|
{{ __('global.actions') }} |
|---|---|---|---|---|---|---|
|
{{ __('global.no_results') }} |
@endif
@foreach($tickets_to_reply ?? [] as $item)
||||||
| {{ $item->id }} | {{ $item->excerptSubject() }} | @if ($item->customer) {{ $item->customer->excerptFullName() }} @else {{ __('global.deleted') }} @endif |
|
@php($lastMessage = $item->messages->last()) @if ($lastMessage && $lastMessage->customer_id != null) {{ $lastMessage->customer->excerptFullName() }} @elseif ($lastMessage && $lastMessage->admin_id != null) {{ $lastMessage->admin->excerptFullName() }} @else -- @endif | {{ $item->updated_at != null ? $item->updated_at->format('d/m/y H:i') : 'None' }} | {{ __('global.show') }} |
{{ __($translatePrefix. '.subheading') }}
|
#
|
{{ __('helpdesk.subject') }}
|
{{ __('global.customer') }}
|
{{ __('helpdesk.priority') }}
|
{{ __('global.created') }}
|
{{ __('global.actions') }} | |
|---|---|---|---|---|---|---|
|
{{ __('global.no_results') }} |
@endif
@foreach($items as $item)
@if (!$item->staffCanView(auth('admin')->user()))
@continue
@endif
||||||
| {{ $item->id }} | {{ $item->excerptSubject() }} | @if ($item->customer) {{ $item->customer->excerptFullName() }} @else {{ __('global.deleted') }} @endif |
|
{{ $item->created_at != null ? $item->created_at->format('d/m/y') : 'None' }} | {{ __('global.show') }} | |