|
|
@ -41,7 +41,8 @@ class OrderResource extends Resource
|
|
|
|
return $form->schema([
|
|
|
|
return $form->schema([
|
|
|
|
Section::make([
|
|
|
|
Section::make([
|
|
|
|
|
|
|
|
|
|
|
|
Section::make([
|
|
|
|
Grid::make(1)
|
|
|
|
|
|
|
|
->schema([
|
|
|
|
Select::make('order_type')
|
|
|
|
Select::make('order_type')
|
|
|
|
->required()
|
|
|
|
->required()
|
|
|
|
->options(OrderType::class)
|
|
|
|
->options(OrderType::class)
|
|
|
@ -76,9 +77,14 @@ class OrderResource extends Resource
|
|
|
|
->required()
|
|
|
|
->required()
|
|
|
|
->default(today()->add('10 days')),
|
|
|
|
->default(today()->add('10 days')),
|
|
|
|
]),
|
|
|
|
]),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Textarea::make('notes')
|
|
|
|
|
|
|
|
->rows(3),
|
|
|
|
|
|
|
|
|
|
|
|
])->columnSpan(1),
|
|
|
|
])->columnSpan(1),
|
|
|
|
|
|
|
|
|
|
|
|
Section::make([
|
|
|
|
Grid::make(1)
|
|
|
|
|
|
|
|
->schema([
|
|
|
|
ToggleButtons::make('status')
|
|
|
|
ToggleButtons::make('status')
|
|
|
|
->required()
|
|
|
|
->required()
|
|
|
|
->options(OrderStatus::class)
|
|
|
|
->options(OrderStatus::class)
|
|
|
@ -89,8 +95,17 @@ class OrderResource extends Resource
|
|
|
|
->multiple()
|
|
|
|
->multiple()
|
|
|
|
->inline(),
|
|
|
|
->inline(),
|
|
|
|
|
|
|
|
|
|
|
|
Textarea::make('notes')
|
|
|
|
ToggleButtons::make('printed')
|
|
|
|
->rows(3),
|
|
|
|
->boolean()
|
|
|
|
|
|
|
|
->inline(),
|
|
|
|
|
|
|
|
ToggleButtons::make('pre_production')
|
|
|
|
|
|
|
|
->label('Pre-production')
|
|
|
|
|
|
|
|
->boolean()
|
|
|
|
|
|
|
|
->inline()
|
|
|
|
|
|
|
|
->colors([
|
|
|
|
|
|
|
|
'true' => 'info',
|
|
|
|
|
|
|
|
'false' => 'info',
|
|
|
|
|
|
|
|
]),
|
|
|
|
|
|
|
|
|
|
|
|
])->columnSpan(1),
|
|
|
|
])->columnSpan(1),
|
|
|
|
])->columns(2),
|
|
|
|
])->columns(2),
|
|
|
@ -126,7 +141,7 @@ class OrderResource extends Resource
|
|
|
|
->cloneable(),
|
|
|
|
->cloneable(),
|
|
|
|
|
|
|
|
|
|
|
|
Repeater::make('services')
|
|
|
|
Repeater::make('services')
|
|
|
|
->label('Production Details')
|
|
|
|
->label('Product Services')
|
|
|
|
->schema([
|
|
|
|
->schema([
|
|
|
|
Grid::make(19)
|
|
|
|
Grid::make(19)
|
|
|
|
->schema([
|
|
|
|
->schema([
|
|
|
|