Compare commits

..

2 Commits

3 changed files with 8 additions and 16 deletions

View File

@ -40,7 +40,6 @@ public static function form(Form $form): Form
->columnSpan(1), ->columnSpan(1),
DatePicker::make('date') DatePicker::make('date')
->default(today())
->required(), ->required(),
TextArea::make('notes') TextArea::make('notes')
@ -65,9 +64,7 @@ public static function form(Form $form): Form
->prefix('$'), ->prefix('$'),
TextInput::make('run_charge') TextInput::make('run_charge')
->prefix('$'), ->prefix('$'),
]) ]),
->addActionLabel('Add Embroidery Entry')
->defaultItems(0),
TableRepeater::make('screenPrintEntries') TableRepeater::make('screenPrintEntries')
->relationship('screenPrintEntries') ->relationship('screenPrintEntries')
@ -89,11 +86,8 @@ public static function form(Form $form): Form
->prefix('$'), ->prefix('$'),
TextInput::make('poly_ink') TextInput::make('poly_ink')
->prefix('$'), ->prefix('$'),
TextInput::make('other_charges') TextInput::make('other_charges'),
->prefix('$'), ]),
])
->addActionLabel('Add Screen Print Entry')
->defaultItems(0),
TableRepeater::make('heatTransferEntries') TableRepeater::make('heatTransferEntries')
->relationship('heatTransferEntries') ->relationship('heatTransferEntries')
@ -102,15 +96,13 @@ public static function form(Form $form): Form
->label('Logo name'), ->label('Logo name'),
TextInput::make('quantity') TextInput::make('quantity')
->prefix('#'), ->prefix('#'),
TextInput::make('width') TextInput::make('Width')
->suffix('"'), ->suffix('"'),
TextInput::make('height') TextInput::make('Height')
->suffix('"'), ->suffix('"'),
TextInput::make('price') TextInput::make('price')
->prefix('$'), ->prefix('$'),
]) ]),
->addActionLabel('Add Heat Transfer Entry')
->defaultItems(0),
])->columns(1); ])->columns(1);
} }

View File

@ -14,7 +14,7 @@ class EmbroideryEntry extends Model
'width', 'width',
'height', 'height',
'placement', 'placement',
'stitch_count', 'stitches',
'digitizing_cost', 'digitizing_cost',
'run_charge', 'run_charge',
]; ];

View File

@ -21,7 +21,7 @@ public function up(): void
$table->decimal('width', 6, 2)->nullable(); $table->decimal('width', 6, 2)->nullable();
$table->decimal('height', 6, 2)->nullable(); $table->decimal('height', 6, 2)->nullable();
$table->string('placement')->nullable(); $table->string('placement')->nullable();
$table->string('stitch_count')->nullable(); $table->string('stitches')->nullable();
$table->string('digitizing_cost')->nullable(); $table->string('digitizing_cost')->nullable();
$table->string('run_charge')->nullable(); $table->string('run_charge')->nullable();
$table->text('notes')->nullable(); $table->text('notes')->nullable();