@extends($activeTemplate.'layouts.'.$layout) @section('content')
@php echo $myTicket->statusBadge; @endphp [@lang('Ticket')#{{ $myTicket->ticket }}] {{ $myTicket->subject }}
@if($myTicket->status != 3 && $myTicket->user) @endif
@if($myTicket->status != 4)
@csrf
@lang('Max 5 files can be uploaded'). @lang('Maximum upload size is') {{ ini_get('upload_max_filesize') }}

@lang('Allowed File Extensions'): .@lang('jpg'), .@lang('jpeg'), .@lang('png'), .@lang('pdf'), .@lang('doc'), .@lang('docx')

@endif
@foreach($messages as $message) @if($message->admin_id == 0)
{{ $message->ticket->name }}

@lang('Posted on') {{ $message->created_at->format('l, dS F Y @ H:i') }}

{{$message->message}}

@if($message->attachments->count() > 0)
@foreach($message->attachments as $k=> $image) @lang('Attachment') {{++$k}} @endforeach
@endif
@else
{{ $message->admin->name }}

@lang('Staff')

@lang('Posted on') {{ $message->created_at->format('l, dS F Y @ H:i') }}

{{$message->message}}

@if($message->attachments->count() > 0)
@foreach($message->attachments as $k=> $image) @lang('Attachment') {{++$k}} @endforeach
@endif
@endif @endforeach
@endsection @push('style') @endpush @push('script') @endpush