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

{{__("Server")}}: {{ $server->name }}

@endif

{{__("Title")}}: {{ $ticket->title }}

{{__("Category")}}: {{ $ticketcategory->name }}

{{__("Status")}}: @switch($ticket->status) @case("Open") {{__("Open")}} @break @case("Reopened") {{__("Reopened")}} @break @case("Closed") {{__("Closed")}} @break @case("Answered") {{__("Answered")}} @break @case("Client Reply") {{__("Client Reply")}} @break @endswitch

Priority: @switch($ticket->priority) @case("Low") {{__("Low")}} @break @case("Medium") {{__("Medium")}} @break @case("High") {{__("High")}} @break @endswitch

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

@if($ticket->status=='Closed')
{{csrf_field()}} {{method_field("POST") }}
@else
{{csrf_field()}} {{method_field("POST") }}
@endif
{{__('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