dynamic-image
:
video-chat
dynamic-image
dynamic-image{!! $ticket?->ticketable_type == 'User' ? " $ticket?->ticketable?->id]) ."'>" . $ticket?->ticketable?->name . "" : ($ticket?->ticketable_type == 'Company' ? $ticket?->ticketable?->name : ($ticket?->ticketable_type == 'Branch' ? $ticket?->ticketable?->company->name . ' - ' . $ticket?->ticketable?->name : null)) !!}
{{ date_format($ticket->created_at, 'l, Y-m-d') }}
{{ $ticket->message }} {{ date_format($ticket->created_at, 'H:i A') }}
@php $all_comments = $ticket ->comments() ->orderBy('created_at') ->get() ->groupBy(function ($query) { return date_format($query->created_at, 'l, Y-m-d'); }); @endphp @foreach ($all_comments as $day => $comments)
{{ $day }}
@foreach ($comments as $comment) @if ($comment->commentable_type == 'Admin')
{{ $comment->message }} {{ date_format($comment->created_at, 'H:i A') }}
@else
{{ $comment->message }} {{ date_format($comment->created_at, 'H:i A') }}
@endif @endforeach @endforeach
@endsection @section('customScript') @endsection