@extends('layouts.master') @section('title',trans('view ticket :ticket',['ticket' => $ticket->id])) @section('header') @if ($defaultLanguage->direction == 'rtl') @endif @endsection @section('main')

{{trans('subject')}}: {{$ticket->subject}}

{{trans('created at')}}

{{$ticket->created_at}}

{{trans('status')}}

{{$ticket->status_fa}}

{{trans('updated at')}}

{{$ticket->updated_at}}

{{trans('message count')}}

{{$ticket->answers->count()}}

{{Auth::user()->name}}
@if($ticket->role == 'admin')

{!! $ticket->message !!}

@if ($ticket->file)
{{trans('file')}}: @endif
@else

{!! $ticket->message !!}

@if ($ticket->file)
{{trans('file')}}: @endif
@endif @foreach($answers as $group)
{{$answers->keys()[$loop->index]}}
@foreach($group as $answer) @if ($answer->role == 'user')

{!! $answer->message !!}

@if ($answer->file)
{{trans('file')}}: @endif
@else

{!! $answer->message !!}

@if ($answer->file)
{{trans('file')}}: @endif
@endif @endforeach @endforeach
@csrf
@endsection @section('footer') @endsection