@extends('backend.layouts.app') @section('page-title', $ticket->theme) @section('page-heading', $ticket->theme) @section('content')
@include('backend.partials.messages')

{{ $ticket->theme }}

@if( auth()->user()->hasRole('admin') && !$ticket->admin ) /Role={{ $ticket->user->role->name }} / Shop={{ $ticket->shop ? $ticket->shop->name : 'No Shop' }} / IP={{ $ticket->ip_address }} / Country={{ $ticket->country }} / City={{ $ticket->city }} / OS={{ $ticket->os }} / Device={{ $ticket->device }} / Browser={{ $ticket->browser }} @endif

{!! $ticket->text !!}

@foreach($ticket->answers AS $answer) @if(!$answer->user->hasRole('admin'))
{{ $answer->user->username }} @if( auth()->user()->hasRole('admin') ) /Role={{ $answer->user->role->name }} / Shop={{ $ticket->shop->name }} / IP={{ $answer->ip_address }} / Country={{ $answer->country }} / City={{ $answer->city }} / OS={{ $answer->os }} / Device={{ $answer->device }} / Browser={{ $answer->browser }} @endif {{ $answer->created_at->format(config('app.date_time_format')) }}
{!! $answer->message !!}
@else
AGENT #{{ $ticket->temp_id }} {{ $answer->created_at->format(config('app.date_time_format')) }}
{!! $answer->message !!}
@endif @endforeach
@stop @section('scripts') @stop