@extends('frontend.layouts.app') @section('content')

{{translate($title)}}

@if($ticket->status != 4) @endif
@if($ticket->status == 1) {{translate('Running')}} @elseif($ticket->status == 2) {{translate('Answered')}} @elseif($ticket->status == 3) {{translate('Replied')}} @elseif($ticket->status == 4) {{translate('Closed')}} @endif

[{{translate("Ticket ID")}}]

{{$ticket->ticket_number}}
@if($ticket->status != 4)
@csrf

{{translate("Attachment")}}

{{translate('Upload')}}
@endif
@foreach($ticket->messages as $meg) @if(!$meg->admin_id)
{{ get_date_time($meg->created_at) }}

{{($meg->message)}}

@if(count($meg->supportfiles) > 0) @foreach($meg->supportfiles as $file) {{translate('Attachment')}} @endforeach @endif
@else
{{translate('Admin Reply')}}
{{translate('Admin')}}
{{ get_date_time($meg->created_at) }}

{{($meg->message)}}

@if(count( $meg->supportfiles)> 0) @foreach($meg->supportfiles as $file) {{translate('Attachment')}} @endforeach @endif
@endif @endforeach
@endsection