wip design
This commit is contained in:
1 parent
56f46608a1
commit
44da4addcd
22 files changed
+330
-169
No files matched your search
@@ -5,8 +5,8 @@ namespace App\Filament\Resources\Kontos\Schemas;
|
||||
use App\Models\Konto;
|
||||
use App\Models\Plan;
|
||||
use Danielebarbaro\LaravelVatEuValidator\Rules\VatNumber;
|
||||
use Filament\Forms\Components\RichEditor;
|
||||
use Filament\Forms\Components\Select;
|
||||
use Filament\Forms\Components\Textarea;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Schemas\Components\Tabs;
|
||||
use Filament\Schemas\Components\Tabs\Tab;
|
||||
@@ -38,7 +38,9 @@ class KontoForm
|
||||
->label('UID Nummer')
|
||||
->rules([new VatNumber])
|
||||
->required(),
|
||||
Textarea::make('address')
|
||||
RichEditor::make('address')->toolbarButtons([
|
||||
['bold', 'italic', 'underline', 'subscript', 'superscript'],
|
||||
])
|
||||
->label('Adresse')
|
||||
->required(),
|
||||
])->columnSpanFull(),
|
||||
|
||||
@@ -7,11 +7,10 @@ use Filament\Actions\EditAction;
|
||||
use Filament\Forms\Components\RichEditor;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Support\Enums\FontWeight;
|
||||
use Filament\Support\Enums\IconSize;
|
||||
use Filament\Support\Enums\TextSize;
|
||||
use Filament\Tables\Columns\IconColumn;
|
||||
use Filament\Tables\Columns\TextColumn;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Support\HtmlString;
|
||||
|
||||
class KontosTable
|
||||
{
|
||||
@@ -20,19 +19,9 @@ class KontosTable
|
||||
return $table
|
||||
->columns([
|
||||
TextColumn::make('company')->label('Firma')
|
||||
->wrap()
|
||||
->description(fn ($record): string => $record->address),
|
||||
// IconColumn::make('plan.icon')
|
||||
// ->width('30px')
|
||||
// ->label('')
|
||||
// ->size(IconSize::TwoExtraLarge)
|
||||
// ->color('primary')
|
||||
// ->icon(fn (string $state): string => $state)
|
||||
// ->extraAttributes(['class' => 'rounded-xl border border-gray-200 dark:border-gray-700 drop-shadow-xl']),
|
||||
// TextColumn::make('plan.name')
|
||||
// ->label('Zahlungs Plan')
|
||||
// ->description(fn ($record): string => $record->plan->payment),
|
||||
|
||||
->size(TextSize::Large)
|
||||
->weight(FontWeight::Bold)
|
||||
->description(fn ($record): HtmlString => new HtmlString($record->address)),
|
||||
TextColumn::make('guthaben')
|
||||
->size(TextSize::Large)
|
||||
->weight(FontWeight::Bold)
|
||||
|
||||
Reference in new issue
Block a user