@extends('admin.layouts.app') @section('panel')
@can('admin.ticket.view') @endcan @forelse($items as $item) @can('admin.ticket.view') @endcan @empty @endforelse
@lang('Subject') @lang('Submitted By') @lang('Status') @lang('Priority') @lang('Last Reply')@lang('Action')
@can('admin.ticket.view') [@lang('Ticket')#{{ $item->ticket }}] {{ strLimit($item->subject, 30) }} @else [@lang('Ticket')#{{ $item->ticket }}] {{ strLimit($item->subject, 30) }} @endcan @if ($item->user_id) @can('admin.users.detail') {{ @$item->user->fullname }} @else {{ @$item->user->fullname }} @endcan @else

{{ $item->name }}

@endif
@php echo $item->statusBadge; @endphp @if ($item->priority == Status::PRIORITY_LOW) @lang('Low') @elseif($item->priority == Status::PRIORITY_MEDIUM) @lang('Medium') @elseif($item->priority == Status::PRIORITY_HIGH) @lang('High') @endif {{ diffForHumans($item->last_reply) }} @lang('Details')
{{ __($emptyMessage) }}
@if ($items->hasPages()) @endif
@endsection