49 lines
1.4 KiB
PHP
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');
|
|
}
|
|
}
|