@extends('admin.layouts.app') @section('panel')
@php echo $ticket->statusBadge; @endphp [@lang('Ticket#'){{ $ticket->ticket }}] {{ $ticket->subject }}
@if ($ticket->status != Status::TICKET_CLOSE) @can('admin.ticket.close') @endcan @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')
@can('admin.ticket.reply')
@endcan
@foreach ($messages as $message) @if ($message->admin_id == 0)
{{ $ticket->name }}
@if ($ticket->user_id != null)

@can('admin.users.detail') @{{ $ticket->name }} @else @{{ $ticket->name }} @endcan

@else

@{{ $ticket->name }}

@endif @can('admin.ticket.delete') @endcan

@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) @can('admin.ticket.download') @lang('Attachment') {{ ++$k }} @else @lang('Attachment') {{ ++$k }} @endcan @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
@can('admin.ticket.close') @endcan @endsection @can('admin.ticket.index') @push('breadcrumb-plugins') @endpush @endcan @push('script') @endpush