default title replaced with name of the view

This commit is contained in:
cbazza committed 2025-10-31 13:14:59 +01:00
1 parent daaa4c5572
commit f9a4d71e10
2 files changed
+4 -16

No files matched your search

@@ -6,18 +6,12 @@ use Illuminate\Support\Collection;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use Livewire\Attributes\Computed; use Livewire\Attributes\Computed;
use Livewire\Attributes\Layout; use Livewire\Attributes\Layout;
use Livewire\Attributes\Title;
use Livewire\Volt\Component; use Livewire\Volt\Component;
new #[Layout('components.layouts.app')] class extends Component { new #[Layout('components.layouts.app'), Title('Unternehmensauskunft')] class extends Component {
public string $search = ''; public string $search = '';
public function with(): array
{
return [
'title' => __('Unternehmensauskunft'),
];
}
#[Computed] #[Computed]
public function overview(): array public function overview(): array
{ {
@@ -7,10 +7,11 @@ use Illuminate\Support\Collection;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use Livewire\Attributes\Computed; use Livewire\Attributes\Computed;
use Livewire\Attributes\Layout; use Livewire\Attributes\Layout;
use Livewire\Attributes\Title;
use Livewire\Volt\Component; use Livewire\Volt\Component;
use Livewire\WithPagination; use Livewire\WithPagination;
new #[Layout('components.layouts.app')] class extends Component { new #[Layout('components.layouts.app'), Title('Transaktionsprüfung')] class extends Component {
use WithPagination; use WithPagination;
public string $search = ''; public string $search = '';
@@ -32,13 +33,6 @@ new #[Layout('components.layouts.app')] class extends Component {
->value('id'); ->value('id');
} }
public function with(): array
{
return [
'title' => __('Transaktionsprüfung'),
];
}
public function selectTransaction(int $transactionId): void public function selectTransaction(int $transactionId): void
{ {
$this->selectedTransactionId = $transactionId; $this->selectedTransactionId = $transactionId;