@extends( ($theme =="white") ? 'layouts.white_user_theme': ( ($theme =="red") ? 'layouts.red_user_theme': (($theme =="green") ? 'layouts.green_user_theme': (($theme =="black") ? 'layouts.black_user_theme': (($theme =="blue") ?'layouts.blue_user_theme' : 'layouts.yellow_user_theme')))) ) @section('content')

{{ __('Tickets') }}

@include('common.demo') @include('common.errors')

{{ __('List of Tickets') }}

{{ __('Open Ticket') }}
@if (!count($tickets))

{{ __('No tickets found') }} !!

{{ __('Sorry we cant find any data, to get rid of this message, make at least 1 entry') }}.

{{ __('Create new One') }}
@else @foreach ($tickets as $ticket) @if ($ticket->ticketUnread ) @if (env('APP_ENV') != 'demo') @endif @else @if (env('APP_ENV') != 'demo') @endif @endif @endforeach
{{ __('Ticket ID') }} {{ __('customer') }} {{ __('Subject') }} {{ __('Status') }} {{ __('Priority') }} {{ __('Department') }} {{ __('Last action') }}
#{{ ($ticket->tid) }} {{ ($ticket->openedUser->name) }} {{ Str::limit($ticket->title, 30) }} {{ __($ticket->ticketStatus->title) }} {{ __($ticket->ticketUrgency->name) }} {{__($ticket->department->name)}} {{$ticket->last_touched_at->diffForHumans()}}
@method('DELETE') @csrf
#{{ ($ticket->tid) }} {{ ($ticket->openedUser->name) }} {{ Str::limit($ticket->title, 30) }} {{ __($ticket->ticketStatus->title) }} {{ __($ticket->ticketUrgency->name) }} {{__($ticket->department->name)}} {{$ticket->last_touched_at->diffForHumans()}}
@method('DELETE') @csrf

{{ $tickets->appends($request->all())->links("pagination::bootstrap-4") }}
@endif
@endsection