@extends('layouts.app') @section('title') Ticket | {{ config('app.name') }} @endsection @section('content')

Ticket

@if ($ticket->status == 0)

@csrf
@error('message')
{{ $message }}
@enderror
@endif
Ticket Subject

{{ $ticket->subject }}

Ticket Description @if ($ticket->attachment) @php $attachments = explode(',', $ticket->attachment); @endphp @foreach ($attachments as $attachment) @endforeach @endif

{!! $ticket->message !!}

Conversations
@forelse ($threads as $thread)
{{ $thread->sender->name }} {{ $thread->response_date_at ? Carbon\Carbon::parse($thread->response_date_at)->diffForHumans() : '' }} @if ($thread->attachment) @php $attachments = explode(',', $thread->attachment); @endphp @foreach ($attachments as $attachment) @endforeach @endif

{!! $thread->message ? $thread->message : '' !!}

@empty @endforelse
@if ($threads->count() >= 20)
@endif
Ticket Details
Ticket No {{ $ticket->ticket_no }}
Date & Time {{ $ticket->complaint_at }}
Customer Name {{ $ticket->customer->name . ' ' . $ticket->customer->last_name }}
ID No {{ $ticket->customer->access_code }}
Ticket Status @if ($ticket->status == 0) Open @else Closed @endif
Assign User
@csrf
@endsection @section('scripts') @endsection