diff --git a/resources/views/admin/chat_window.blade.php b/resources/views/admin/chat_window.blade.php index d908aa8..31256ad 100644 --- a/resources/views/admin/chat_window.blade.php +++ b/resources/views/admin/chat_window.blade.php @@ -4,6 +4,7 @@ @section('content')
@@ -662,6 +689,12 @@ body {
+ {{-- per‑ticket new message notification --}} +
+ New messages: + 0 +
+ {{ ucfirst($ticket->status) }} @@ -692,8 +725,7 @@ body { $isPdf = Str::endsWith($msg->file_path, '.pdf'); $isDocument = in_array(Str::lower(Str::afterLast($msg->file_path, '.')), ['doc', 'docx', 'txt']); $fileName = basename($msg->file_path); - - // Get file size from storage if possible + $fileSize = 'N/A'; try { $fullPath = storage_path('app/public/' . $msg->file_path); @@ -710,8 +742,7 @@ body { } catch (Exception $e) { $fileSize = 'Unknown'; } - - // Determine file class + if ($isImage) { $fileClass = 'image-file'; $fileIcon = '🖼️'; @@ -744,9 +775,9 @@ body { Your browser does not support the video tag. @endif - -
@@ -758,7 +789,7 @@ body {
-
@@ -789,10 +820,11 @@ body {
- +