Added a New Page for Viewing Survey Responses
A new page, known as ViewSurveyForm, has been created in the FormResource/Pages directory. This page allows users to view the responses to a particular survey form.
Updated FormResource Class
The FormResource class now includes a route to the ViewSurveyForm page, making it accessible to users.
The ViewAction in the same class has been customized with a new function (url) that generates a URL based on the type of the record.
Modified ViewResponse Class
The Action class being used within the ViewResponse class has been updated. Now, it uses the Filament\Actions\Action instead of Filament\Pages\Actions\Action.
Added a New Template for Survey Responses
A new template file, survey.blade.php, has been created under the filament/resources/form-resource/pages directory for displaying survey responses. This template groups the responses by the type of question (like lists or matrix) and can handle various types of questions.
PR Summary
Added a New Page for Viewing Survey Responses A new page, known as
ViewSurveyForm
, has been created in theFormResource/Pages
directory. This page allows users to view the responses to a particular survey form.Updated FormResource Class
FormResource
class now includes a route to theViewSurveyForm
page, making it accessible to users.ViewAction
in the same class has been customized with a new function (url
) that generates a URL based on the type of the record.Modified ViewResponse Class The
Action
class being used within theViewResponse
class has been updated. Now, it uses theFilament\Actions\Action
instead ofFilament\Pages\Actions\Action
.Added a New Template for Survey Responses A new template file,
survey.blade.php
, has been created under thefilament/resources/form-resource/pages
directory for displaying survey responses. This template groups the responses by the type of question (like lists or matrix) and can handle various types of questions.