{{ $pageTitle }}

{{ $ticket->user->name }} @if ($ticket->user->role == USER_ROLE_OWNER) {{ __('Owner') }} @elseif($ticket->user->role == USER_ROLE_TENANT) ({{ __('Tenant') }}) @elseif($ticket->user->role == USER_ROLE_MAINTAINER) {{ __('Maintainer') }} @endif

{{ __('Details') }}

{{ $ticket->details }}

{{ __('Attachments') }}
@if (count($replies) > 0)

{{ __('Ticket Replies') }}

@foreach ($replies as $reply)
@if ($reply->user_id == auth()->id()) {{ __('You - ') }} @endif {{ $reply->first_name }} {{ $reply->last_name }} @if ($reply->role == USER_ROLE_OWNER) ({{ __('Owner') }}) @elseif ($reply->role == USER_ROLE_TENANT) ({{ __('Tenant') }}) @elseif ($reply->role == USER_ROLE_MAINTAINER) ({{ __('Maintainer') }}) @endif

{{ $reply->reply }}

@if (count($reply->attachments) > 0)
{{ __('Attachments') }}
@endif
@endforeach
@endif

{{ __('Write a Reply') }}

{{ __('Ticket Info') }}

{{ __('ID') }}: #{{ $ticket->ticket_no }}
{{ __('Title') }}

{{ $ticket->title }}

{{ __('Topic') }}

{{ $ticket->topic->name }}

{{ __('Property') }}

{{ $ticket->property->name }}

{{ __('Unit') }}

{{ $ticket->unit->unit_name }}

{{ __('Status') }}
@if ($ticket->status == TICKET_STATUS_OPEN)

{{ __('Open') }}

@elseif ($ticket->status == TICKET_STATUS_INPROGRESS)

{{ __('Inprogress') }}

@elseif ($ticket->status == TICKET_STATUS_REOPEN)

{{ __('Reopen') }}

@elseif ($ticket->status == TICKET_STATUS_RESOLVED)

{{ __('Resolved') }}

@else

{{ __('Close') }}

@endif
{{ __('Opened') }}

{{ $ticket->created_at->format('Y-m-d') }}