@extends('admin.layouts.app') @section('panel')
@php echo $ticket->statusBadge; @endphp [@lang('Ticket#'){{ $ticket->ticket }}] {{ $ticket->subject }}
@if($ticket->status != 3) @endif
@csrf
@lang('Max 5 files can be uploaded. 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')
@foreach($messages as $message) @if($message->admin_id == 0)
{{ $ticket->name }}
@if($ticket->user_id != null)

@{{ $ticket->name }}

@else

@{{$ticket->name}}

@endif

@lang('Posted on') {{ showDateTime($message->created_at, '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') {{showDateTime($message->created_at,'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('breadcrumb-plugins') @endpush @push('script') @endpush