
@php
    $showLink =  route('ticket.tickets.show', $TicketList->id);
@endphp

<a class="subject_link {{$TicketList->messages->count() < 1 ? "no_reply_ticket":""}}" target="_blank" href="{{$showLink}}">
    {{$TicketList->reference_no}} - {{$TicketList->subject}}
</a>
@foreach($TicketList->attachFiles as $key => $file)
    <a target="_blank" href="{{route('ticket.attach_file_view','tf-'.encrypt($file->id))}}"><i class="ti ti-file"></i></a>
@endforeach
<div class="limit_text color_inherit">
    @php
        echo $TicketList->description;
    @endphp
</div>
@if($TicketList->messages->count() == 0)
    {{$TicketList->created_at->diffForHumans()}}
@else
    {{$TicketList->messages->last()->created_at->diffForHumans()}}
@endif



