diff --git a/app/Http/Controllers/Admin/FaqController.php b/app/Http/Controllers/Admin/FaqController.php index 0cb3774..67478ad 100644 --- a/app/Http/Controllers/Admin/FaqController.php +++ b/app/Http/Controllers/Admin/FaqController.php @@ -30,6 +30,7 @@ class FaqController extends Controller public function index() { $data = $this->faqServices->viewfaq(); + // return $data; return view('Admin.pages.manage_cms.manage_faq.manage_faq')->with($data); } /** diff --git a/resources/views/Admin/pages/manage_cms/manage_faq/manage_faq.blade.php b/resources/views/Admin/pages/manage_cms/manage_faq/manage_faq.blade.php index ee70c03..e1047ff 100644 --- a/resources/views/Admin/pages/manage_cms/manage_faq/manage_faq.blade.php +++ b/resources/views/Admin/pages/manage_cms/manage_faq/manage_faq.blade.php @@ -35,22 +35,17 @@ $currentPage = 'manage-faq'; } - -
-
+
Manage FAQ
-
- -
-
+
@@ -64,7 +59,7 @@ $currentPage = 'manage-faq'; - + @foreach ($faq as $index => $faqs) @@ -86,50 +81,6 @@ $currentPage = 'manage-faq'; {{ \Carbon\Carbon::parse($faqs['created_at'])->format('d/m/Y') }} @endif - - - @endforeach @@ -169,89 +110,86 @@ $currentPage = 'manage-faq'; - -
Action
{{ $index + 1 }}
@@ -141,25 +92,15 @@ $currentPage = 'manage-faq'; - - - - - -
- - - {{-- --}} - + - {{-- --}} -
Name : User ID : Date of birth : Phone Number :End Date :
{{ $customers_data->first_name }} {{ $customers_data->last_name }} {{ $customers_data->id }}{{ \Carbon\Carbon::parse($customers_data->date_of_birth)->format('d/m/Y') }} - {{ \Carbon\Carbon::parse($customers_data->date_of_birth)->format('d/m/Y') }} {{ $customers_data->phone_number }}22/10/2023
Download user report +
- - - - {{-- --}} - {{-- --}} - - @if($customers_data->contactMessages->isNotEmpty()) - @foreach($customers_data->contactMessages as $messages) - - @endforeach - @else - - @endif - - - {{-- --}} -
Location :Email ID :Contact History : Onboarded date :Location :Start Date :
{{ $customers_data->state->name}}{{ $customers_data->email_address }}{{$messages->message}}Message is not available{{ \Carbon\Carbon::parse($customers_data->created_at)->format('d-m-y') }}{{ $customers_data->country_xid }}03/07/2023
- +
+
+
+ Contact History +
+
+ @if($customers_data->contactMessages->isNotEmpty()) + @foreach($customers_data->contactMessages as $message) +
+ Message: +

{{ $message->message }}

+
+ @if($message->reply_message) +
+ Reply: +

{{ $message->reply_message }}

+
+ @endif + @endforeach + @else +

No contact history available.

+ @endif +
+
+
-
-
-
- -
-
@@ -123,7 +124,6 @@ $currentPage = 'manage-customer'; @endsection - @section('section_script') @endsection