diff --git a/resources/views/themes/zeus/bolt/submitted.blade.php b/resources/views/themes/zeus/bolt/submitted.blade.php index 6a8442b3..62f1d752 100644 --- a/resources/views/themes/zeus/bolt/submitted.blade.php +++ b/resources/views/themes/zeus/bolt/submitted.blade.php @@ -1,9 +1,9 @@
- @if(!empty($zeusForm->options['confirmation_message'])) + @if(!empty($zeusForm->options['confirmation-message'])) - {!! $zeusForm->options['confirmation_message'] !!} + {!! $zeusForm->options['confirmation-message'] !!} @else diff --git a/src/Filament/Resources/FormResource/Widgets/ResponsesPerMonth.php b/src/Filament/Resources/FormResource/Widgets/ResponsesPerMonth.php index d0c0a7b4..2eace19b 100644 --- a/src/Filament/Resources/FormResource/Widgets/ResponsesPerMonth.php +++ b/src/Filament/Resources/FormResource/Widgets/ResponsesPerMonth.php @@ -3,6 +3,7 @@ namespace LaraZeus\Bolt\Filament\Resources\FormResource\Widgets; use Filament\Widgets\ChartWidget; +use LaraZeus\Bolt\BoltPlugin; use LaraZeus\Bolt\Models\Form; use LaraZeus\Bolt\Models\Response; @@ -30,7 +31,7 @@ protected function getData(): array for ($m = 1; $m <= 12; $m++) { $month = date('m', mktime(0, 0, 0, $m, 1, (int) now()->format('Y'))); - $dataset[] = Response::query() + $dataset[] = BoltPlugin::getModel('Response')::query() ->where('form_id', $this->record->id) ->whereYear('created_at', '=', now()->format('Y')) ->whereMonth('created_at', '=', $month)