- Added standard Laravel directory structure and configuration. - Included Svelte and Tailwind configuration for the admin interface. - Added core PHPUnit and testing scripts.
30 lines
696 B
PHP
30 lines
696 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Admin\Forms;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Models\Form;
|
|
use App\Models\FormSubmission;
|
|
use Illuminate\View\View;
|
|
|
|
/**
|
|
* Controller for showing a specific form submission.
|
|
*/
|
|
class FormSubmissionShowController extends Controller
|
|
{
|
|
/**
|
|
* Show a specific submission.
|
|
*
|
|
* @param \App\Models\Form $form
|
|
* @param \App\Models\FormSubmission $submission
|
|
* @return \Illuminate\View\View
|
|
*/
|
|
public function __invoke(Form $form, FormSubmission $submission): View
|
|
{
|
|
return view('admin.forms.submissions.show', [
|
|
'form' => $form,
|
|
'submission' => $submission,
|
|
]);
|
|
}
|
|
}
|