@extends('agent.layouts.app') @section('title', translate('Tickets', 'tickets')) @section('content')

{{ translate('Opened Tickets', 'tickets') }}

{{ number_format($counters['opened_tickets']) }}

{{ translate('Closed Tickets', 'tickets') }}

{{ number_format($counters['closed_tickets']) }}

{{ translate('All Tickets', 'tickets') }}

@if (request('search') || request('status_opened') || request('status_closed') || request('priority')) {{ translate('Clear', 'tickets') }} @endif
@forelse ($tickets as $ticket) @empty @endforelse
{{ translate('ID', 'tickets') }} {{ translate('Subject', 'tickets') }} {{ translate('Priority', 'tickets') }} {{ translate('Status', 'tickets') }} {{ translate('Created Date', 'tickets') }}
#{{ $ticket->id }} {{ shorterText($ticket->subject, 50) }} {{ $ticket->getPriority() }} @if ($ticket->isOpened()) {{ translate('Opened', 'tickets') }} @else {{ translate('Closed', 'tickets') }} @endif {{ dateFormat($ticket->created_at) }}

{{ translate('No tickets found', 'tickets') }}

{{ $tickets->links() }}
@endsection