diff --git a/app/Contribution/Documents/BdkjHesse.php b/app/Contribution/Documents/BdkjHesse.php index 00f7bef6..63c599ad 100644 --- a/app/Contribution/Documents/BdkjHesse.php +++ b/app/Contribution/Documents/BdkjHesse.php @@ -7,8 +7,6 @@ use App\Contribution\Traits\HasPdfBackground; use App\Country; use Carbon\Carbon; use Illuminate\Support\Collection; -use Zoomyboy\Tex\Engine; -use Zoomyboy\Tex\Template; class BdkjHesse extends ContributionDocument { @@ -123,11 +121,6 @@ class BdkjHesse extends ContributionDocument return 'tex.contribution.bdkj-hesse'; } - public function template(): Template - { - return Template::make('tex.templates.contribution'); - } - public function setFilename(string $filename): static { $this->filename = $filename; diff --git a/app/Contribution/Documents/CityFrankfurtMainDocument.php b/app/Contribution/Documents/CityFrankfurtMainDocument.php index 05c58205..285d219e 100644 --- a/app/Contribution/Documents/CityFrankfurtMainDocument.php +++ b/app/Contribution/Documents/CityFrankfurtMainDocument.php @@ -8,7 +8,6 @@ use App\Country; use App\Invoice\InvoiceSettings; use Carbon\Carbon; use Illuminate\Support\Collection; -use Zoomyboy\Tex\Template; class CityFrankfurtMainDocument extends ContributionDocument { @@ -109,11 +108,6 @@ class CityFrankfurtMainDocument extends ContributionDocument return 'tex.contribution.city-frankfurt-main'; } - public function template(): Template - { - return Template::make('tex.templates.contribution'); - } - public function setFilename(string $filename): static { $this->filename = $filename; diff --git a/app/Contribution/Documents/CityRemscheidDocument.php b/app/Contribution/Documents/CityRemscheidDocument.php index 9a84e4f4..fd600af0 100644 --- a/app/Contribution/Documents/CityRemscheidDocument.php +++ b/app/Contribution/Documents/CityRemscheidDocument.php @@ -8,7 +8,6 @@ use App\Country; use App\Member\Member; use Carbon\Carbon; use Illuminate\Support\Collection; -use Zoomyboy\Tex\Template; class CityRemscheidDocument extends ContributionDocument { @@ -84,11 +83,6 @@ class CityRemscheidDocument extends ContributionDocument return 'tex.contribution.city-remscheid'; } - public function template(): Template - { - return Template::make('tex.templates.contribution'); - } - public function setFilename(string $filename): static { $this->filename = $filename; diff --git a/app/Contribution/Documents/CitySolingenDocument.php b/app/Contribution/Documents/CitySolingenDocument.php index 054adc12..2e0b4054 100644 --- a/app/Contribution/Documents/CitySolingenDocument.php +++ b/app/Contribution/Documents/CitySolingenDocument.php @@ -7,7 +7,6 @@ use App\Invoice\InvoiceSettings; use Carbon\Carbon; use Illuminate\Support\Collection; use Zoomyboy\Tex\Engine; -use Zoomyboy\Tex\Template; class CitySolingenDocument extends ContributionDocument { @@ -74,11 +73,6 @@ class CitySolingenDocument extends ContributionDocument return Carbon::parse($this->dateUntil)->format('d.m.Y'); } - public function template(): Template - { - return Template::make('tex.templates.contribution'); - } - public function checkboxes(): string { $output = ''; diff --git a/app/Contribution/Documents/ContributionDocument.php b/app/Contribution/Documents/ContributionDocument.php index c2b99d26..421b00bc 100644 --- a/app/Contribution/Documents/ContributionDocument.php +++ b/app/Contribution/Documents/ContributionDocument.php @@ -3,6 +3,7 @@ namespace App\Contribution\Documents; use Zoomyboy\Tex\Document; +use Zoomyboy\Tex\Template; abstract class ContributionDocument extends Document { @@ -50,4 +51,9 @@ abstract class ContributionDocument extends Document { return str('Zuschüsse ')->append($this->getName())->append(' ')->append($this->eventName)->slug(); } + + public function template(): Template + { + return Template::make('tex.templates.contribution'); + } } diff --git a/app/Contribution/Documents/GallierDocument.php b/app/Contribution/Documents/GallierDocument.php index bb4a9377..89517c60 100644 --- a/app/Contribution/Documents/GallierDocument.php +++ b/app/Contribution/Documents/GallierDocument.php @@ -7,7 +7,6 @@ use App\Contribution\Traits\HasPdfBackground; use App\Country; use Carbon\Carbon; use Illuminate\Support\Collection; -use Zoomyboy\Tex\Template; class GallierDocument extends ContributionDocument { @@ -75,11 +74,6 @@ class GallierDocument extends ContributionDocument return 'tex.contribution.gallier'; } - public function template(): Template - { - return Template::make('tex.templates.contribution'); - } - public function setFilename(string $filename): static { $this->filename = $filename; diff --git a/app/Contribution/Documents/RdpNrwDocument.php b/app/Contribution/Documents/RdpNrwDocument.php index 29a1e972..7dae937e 100644 --- a/app/Contribution/Documents/RdpNrwDocument.php +++ b/app/Contribution/Documents/RdpNrwDocument.php @@ -7,7 +7,6 @@ use App\Contribution\Traits\HasPdfBackground; use App\Country; use Carbon\Carbon; use Illuminate\Support\Collection; -use Zoomyboy\Tex\Template; class RdpNrwDocument extends ContributionDocument { @@ -105,11 +104,6 @@ class RdpNrwDocument extends ContributionDocument return 'tex.contribution.rdp-nrw'; } - public function template(): Template - { - return Template::make('tex.templates.contribution'); - } - public function setFilename(string $filename): static { $this->filename = $filename;