Compare commits

..

No commits in common. "01d4fae6a59f3748a9cbe6ed6bc0066b23d63655" and "d3a9f183cada05bf7b05ff59638a8eb0cc194285" have entirely different histories.

3 changed files with 16 additions and 8 deletions

View File

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

View File

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

View File

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