@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()}} {{mb_substr(Auth::user()->name,0,2,'utf-8')}} {{Auth::user()->name}} {{trans('close')}} @if($ticket->role == 'admin') {!! $ticket->message !!} @if ($ticket->file) {{trans('file')}}: @endif @else {{mb_substr(Auth::user()->name,0,2,'utf-8')}} {!! $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') {{mb_substr(Auth::user()->name,0,2,'utf-8')}} {!! $answer->message !!} @if ($answer->file) {{trans('file')}}: @endif @else {!! $answer->message !!} @if ($answer->file) {{trans('file')}}: @endif @endif @endforeach @endforeach @csrf {{trans('send')}} @endsection @section('footer') @endsection
{{trans('created at')}}
{{$ticket->created_at}}
{{trans('status')}}
{{trans('updated at')}}
{{$ticket->updated_at}}
{{trans('message count')}}
{{$ticket->answers->count()}}
{!! $ticket->message !!}
{!! $answer->message !!}