Added curve radius in sticker details resource pages #54
@@ -20,6 +20,7 @@ use Filament\Tables\Table;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\SoftDeletingScope;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Closure;
|
||||
|
||||
class StickerDetailResource extends Resource
|
||||
{
|
||||
@@ -94,12 +95,18 @@ class StickerDetailResource extends Resource
|
||||
->label('String Y Value'),
|
||||
Forms\Components\Select::make('shape_name')
|
||||
->label('Shape Name')
|
||||
->reactive()
|
||||
->options([
|
||||
'Line' => 'Line',
|
||||
'Rectangle' => 'Rectangle',
|
||||
'CurvedRectangle' => 'CurvedRectangle',
|
||||
]),
|
||||
Forms\Components\TextInput::make('shape_pen_size')
|
||||
->label('Shape Pen Size'),
|
||||
Forms\Components\TextInput::make('curve_radius')
|
||||
->label('Curve Radius')
|
||||
->reactive()
|
||||
->visible(fn ($get) => $get('shape_name') == 'CurvedRectangle'),
|
||||
Forms\Components\TextInput::make('shape_x1_value')
|
||||
->label('Shape X1 Value'),
|
||||
Forms\Components\TextInput::make('shape_y1_value')
|
||||
@@ -200,6 +207,8 @@ class StickerDetailResource extends Resource
|
||||
Tables\Columns\TextColumn::make('shape_pen_size')
|
||||
->label('Shape Pen Size')
|
||||
->alignCenter(),
|
||||
Tables\Columns\TextColumn::make('curve_radius')
|
||||
->label('Curve Radius'),
|
||||
Tables\Columns\TextColumn::make('shape_x1_value')
|
||||
->label('Shape X1 Value')
|
||||
->alignCenter(),
|
||||
|
||||
Reference in New Issue
Block a user