@extends('layouts.main') @section('content')
#{{ $ticket->ticket_id }}
@if(!empty($server))

Server: {{ $server->name }}

@endif

Title: {{ $ticket->title }}

Category: {{ $ticketcategory->name }}

@if ($ticket->status === 'Open') Status: Open @elseif ($ticket->status === 'Closed') Status: Closed @elseif ($ticket->status === 'Answered') Status: Answered @elseif ($ticket->status === 'Client Reply') Status: Client Reply @endif

Created on: {{ $ticket->created_at->diffForHumans() }}

{{__('Comment')}}
User Image {{ $ticket->user->name }} @if($ticket->user->role === "member") Member @elseif ($ticket->user->role === "client") Client @elseif ($ticket->user->role === "moderator") Moderator @elseif ($ticket->user->role === "admin") Admin @endif
{{ $ticket->created_at->diffForHumans() }}
{{ $ticket->message }}
@foreach ($ticketcomments as $ticketcomment)
User Image {{ $ticketcomment->user->name }} @if($ticketcomment->user->role === "member") Member @elseif ($ticketcomment->user->role === "client") Client @elseif ($ticketcomment->user->role === "moderator") Moderator @elseif ($ticketcomment->user->role === "admin") Admin @endif
{{ $ticketcomment->created_at->diffForHumans() }}
{{ $ticketcomment->ticketcomment }}
@endforeach
{!! csrf_field() !!}
@if ($errors->has('ticketcomment')) {{ $errors->first('ticketcomment') }} @endif
@endsection