Files
nuhodds_fi4/app/Livewire/EncounterHistory.php
T
2026-03-07 16:00:32 +01:00

49 lines
1.4 KiB
PHP

<?php
namespace App\Livewire;
use Filament\Actions\Concerns\InteractsWithActions;
use Filament\Actions\Contracts\HasActions;
use Filament\Infolists\Components\TextEntry;
use Filament\Schemas\Components\Tabs;
use Filament\Schemas\Components\Tabs\Tab;
use Filament\Schemas\Concerns\InteractsWithSchemas;
use Filament\Schemas\Contracts\HasSchemas;
use Filament\Schemas\Schema;
use Illuminate\Contracts\View\View;
use Livewire\Component;
class EncounterHistory extends Component implements HasActions, HasSchemas
{
use InteractsWithActions;
use InteractsWithSchemas;
public function content(Schema $schema): Schema
{
return $schema
->record($this->event)
->components([
Tabs::make('Tabs')
->tabs([
Tab::make('Direct')
->schema([
TextEntry::make('home.name'),
]),
Tab::make('Home')
->schema([
// ...
]),
Tab::make('Away')
->schema([
// ...
]),
]),
]);
}
public function render(): View
{
return view('livewire.encounter-history');
}
}