diff --git a/app/Http/Controllers/Admin/ManageContactUsController.php b/app/Http/Controllers/Admin/ManageContactUsController.php index eaf6016..1bf4633 100644 --- a/app/Http/Controllers/Admin/ManageContactUsController.php +++ b/app/Http/Controllers/Admin/ManageContactUsController.php @@ -28,6 +28,7 @@ class ManageContactUsController extends Controller } else { $queries = ManageContactUs::with('customer')->orderBy('id','desc')->get(); } + // return $queries; return view('Admin.pages.manage_contact_us.manage_contact', compact('queries')); } @@ -62,6 +63,7 @@ class ManageContactUsController extends Controller } catch (\Exception $e) { return response()->json(['error' => 'Failed to send email', 'message' => $e->getMessage()], 500); } + return response()->json(['message' => 'Reply sent successfully']); } diff --git a/resources/views/Admin/pages/manage_contact_us/manage_contact.blade.php b/resources/views/Admin/pages/manage_contact_us/manage_contact.blade.php index 6fe9858..d248679 100644 --- a/resources/views/Admin/pages/manage_contact_us/manage_contact.blade.php +++ b/resources/views/Admin/pages/manage_contact_us/manage_contact.blade.php @@ -1,210 +1,188 @@ @extends('Admin.layouts.master') @section('content') - @php - $currentPage = 'manage-contact-us'; - @endphp - + .action-btn span { + font-size: 14px; + /* Adjust font size as needed */ + line-height: 1.5; + /* Adjust line height as needed */ + } + -
-
-
-
-
-
-
Manage Contact Us
-
-
-
-
-
+
+
+
+
+
+
+
Manage Contact Us
+
+
+
+
+
-
- -
-
-
- - - - - - - - - - - - - - - @foreach ($queries as $querie) - - - - - - - - - - @endforeach + + @endforeach
Sr No.First NameLast NameEmail addressDateMessageStatusActions
{{ $loop->iteration }}{{ $querie->customer?->first_name ?? 'N/A' }}{{ $querie->customer?->last_name ?? 'N/A' }}{{ $querie['email'] }}{{ $querie['created_at']->format('m/d/y') }} - View - - -
-
- - -
-
-
- - @if (!$querie['is_reply']) -
- - - Reply - + @if (!$querie['is_reply']) +
+ + + Reply + + @endif + + @if ($querie['is_reply']) +
+ + + View reply + @endif - @if ($querie['is_reply']) -
-
+
- - -
-
-
-
- - + + @endsection @section('section_script') - - + + - + + + + + + + - - - - - - - + }); + - -@endsection + }); + +@endsection \ No newline at end of file