@if($ticket->admin == NULL || $ticket->admin == 0) @if($ticket->userid != 0) {{ $ticket->submitter }} @else {{ $ticket->submitter}} @endif @else {{ $ticket->submitter}} @endif
{{$ticket->email}}

@if($ticket->admin !== NULL || $ticket->admin != 0) @lang('crm.ticket_staff_string') @else @if($ticket->userid != 0) @lang('crm.ticket_client_string') @endif @endif

@if(Auth::user()->isAdmin())
@endif
{!! $ticket['message'] !!}
@if(!empty($ticket['attachments']))
@foreach($ticket['attachments'] as $attachment) @php $path = get_upload_path_by_type('ticket').$ticket->ticketid.'/'.$attachment['file_name']; $is_image = is_image($path); @endphp
@if(Auth::user()->isAdmin() || (!Auth::user()->isAdmin() && get_option('allow_non_admin_staff_to_delete_ticket_attachments') == '1')) {{ trans_ex('crm.delete', ' ') }} @endif @endforeach @endif
@foreach($ticket->replies as $reply)

@if($reply->admin == NULL || $reply->admin == 0) @if($reply->userid != 0) {{ $reply->submitter }} @else {{ $reply->submitter}} @endif @else {{ $reply->submitter}} @endif
{{$reply->email}}

@if($reply->admin !== NULL || $reply->admin != 0) @lang('crm.ticket_staff_string') @else @if($reply->userid != 0) @lang('crm.ticket_client_string') @endif @endif

@if(Auth::user()->isAdmin() || (!Auth::user()->isAdmin() && get_option('allow_non_admin_staff_to_delete_ticket_attachments') == '1'))
@lang('crm.delete_ticket_reply') @endif
@if(Auth::user()->isAdmin())
@endif
{!! $reply['message'] !!}
@if(!empty($reply['attachments']))
@foreach($reply['attachments'] as $attachment) @php $path = get_upload_path_by_type('ticket').$ticket->ticketid.'/'.$attachment['file_name']; $is_image = is_image($path); @endphp
@if(Auth::user()->isAdmin() || (!Auth::user()->isAdmin() && get_option('allow_non_admin_staff_to_delete_ticket_attachments') == '1')) {{ trans_ex('crm.delete', ' ') }}
@endif @endforeach @endif
@endforeach