plan options
This commit is contained in:
1 parent
8463f50f6b
commit
ecb66a76b5
14 files changed
+277
-303
No files matched your search
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace App\Filament\Resources\Plans\Schemas;
|
||||
|
||||
use Filament\Forms\Components\FileUpload;
|
||||
use Filament\Forms\Components\Textarea;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Schemas\Schema;
|
||||
@@ -18,10 +17,8 @@ class PlanForm
|
||||
Textarea::make('description')->label('Beschreibung')->required(),
|
||||
TextInput::make('preis')->required()->numeric(),
|
||||
TextInput::make('limit_user')->required()->label('Anzahl Benutzer')->numeric(),
|
||||
TextInput::make('limit_auftraggeber')->required()->label('Anzahl Auftraggeber')->numeric(),
|
||||
TextInput::make('limit_gutachter')->required()->label('Anzahl Gutachter')->numeric(),
|
||||
TextInput::make('limit_gutachten')->required()->label('Anzahl Projekte')->numeric(),
|
||||
FileUpload::make('promotion')->disk('promotion'),
|
||||
TextInput::make('icon'),
|
||||
])->inlineLabel()->columns(1);
|
||||
}
|
||||
}
|
||||
@@ -3,7 +3,8 @@
|
||||
namespace App\Filament\Resources\Plans\Tables;
|
||||
|
||||
use Filament\Actions\EditAction;
|
||||
use Filament\Tables\Columns\ImageColumn;
|
||||
use Filament\Support\Enums\IconSize;
|
||||
use Filament\Tables\Columns\IconColumn;
|
||||
use Filament\Tables\Columns\TextColumn;
|
||||
use Filament\Tables\Table;
|
||||
|
||||
@@ -13,15 +14,17 @@ class PlansTable
|
||||
{
|
||||
return $table
|
||||
->columns([
|
||||
ImageColumn::make('promotion')->imageHeight(100)->disk('promotion'),
|
||||
IconColumn::make('icon')
|
||||
->label('')
|
||||
->size(IconSize::TwoExtraLarge)
|
||||
->color('primary')
|
||||
->icon(fn (string $state): string => $state),
|
||||
TextColumn::make('name')
|
||||
->description(fn ($record): string => $record->description)
|
||||
->wrap(),
|
||||
TextColumn::make('payment')->label('Plan'),
|
||||
TextColumn::make('limit_user')->label('B')->tooltip('Benutzer')->badge(),
|
||||
TextColumn::make('limit_auftraggeber')->label('A')->tooltip('Auftraggeber')->badge(),
|
||||
TextColumn::make('limit_gutachter')->label('G')->tooltip('Gutachter')->badge(),
|
||||
TextColumn::make('limit_gutachten')->label('P')->tooltip('Projekte')->badge(),
|
||||
TextColumn::make('limit_user')->label('Benutzer')->badge(),
|
||||
TextColumn::make('limit_gutachter')->label('Gutachter')->badge(),
|
||||
TextColumn::make('preis')->money('EUR'),
|
||||
])
|
||||
->recordActions([
|
||||
@@ -29,9 +32,3 @@ class PlansTable
|
||||
]);
|
||||
}
|
||||
}
|
||||
// `file` varchar(255) DEFAULT NULL,
|
||||
// `preis` int(11) NOT NULL DEFAULT 0,
|
||||
// `limit_user` int(11) NOT NULL DEFAULT 1,
|
||||
// `limit_auftraggeber` int(11) NOT NULL DEFAULT 1,
|
||||
// `limit_gutachter` int(11) NOT NULL DEFAULT 1,
|
||||
// `limit_gutachten` int(11) D
|
||||
Reference in new issue
Block a user