Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
c5b0a43928
commit
a4f3254ebd
3 files changed
+51
-1
No files matched your search
@@ -28,8 +28,24 @@ class SupplierResource extends Resource
|
||||
return $form
|
||||
->schema([
|
||||
Forms\Components\TextInput::make('name')
|
||||
->label('Name')
|
||||
->required()
|
||||
->maxLength(255),
|
||||
Forms\Components\TextInput::make('address')
|
||||
->label('Anschrift')
|
||||
->maxLength(255),
|
||||
Forms\Components\TextInput::make('phone')
|
||||
->label('Telefon')
|
||||
->tel()
|
||||
->maxLength(50),
|
||||
Forms\Components\TextInput::make('email')
|
||||
->label('E-Mail')
|
||||
->email()
|
||||
->maxLength(255),
|
||||
Forms\Components\TextInput::make('website')
|
||||
->label('Webseite')
|
||||
->url()
|
||||
->maxLength(255),
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -38,7 +54,16 @@ class SupplierResource extends Resource
|
||||
return $table
|
||||
->columns([
|
||||
Tables\Columns\TextColumn::make('name')
|
||||
->label('Name')
|
||||
->searchable(),
|
||||
Tables\Columns\TextColumn::make('email')
|
||||
->label('E-Mail')
|
||||
->searchable(),
|
||||
Tables\Columns\TextColumn::make('phone')
|
||||
->label('Telefon'),
|
||||
Tables\Columns\TextColumn::make('website')
|
||||
->label('Webseite')
|
||||
->toggleable(isToggledHiddenByDefault: true),
|
||||
Tables\Columns\TextColumn::make('created_at')
|
||||
->dateTime()
|
||||
->sortable()
|
||||
|
||||
Reference in new issue
Block a user