Added options in characteristics type and changed path of the fonts #1095
@@ -96,7 +96,7 @@ class StickerDetailResource extends Resource
|
||||
->reactive()
|
||||
->searchable()
|
||||
->options(
|
||||
collect(Schema::getColumnListing('class_characteristics'))
|
||||
collect(Schema::getColumnListing('class_characteristics'))
|
||||
->reject(fn ($column) => in_array($column, [
|
||||
'id',
|
||||
'plant_id',
|
||||
@@ -121,6 +121,9 @@ class StickerDetailResource extends Resource
|
||||
->prepend('Verified By', 'verified_by')
|
||||
->prepend('Approved By', 'approved_by')
|
||||
->prepend('Date Of Test', 'date_of_test')
|
||||
->prepend('Gross Wt Dual', 'zmm_grwt_pump_dual')
|
||||
->prepend('Net Wt Dual', 'zmm_newt_pump_dual')
|
||||
->prepend('MRP Dual', 'mrp_dual')
|
||||
->toArray()
|
||||
),
|
||||
Forms\Components\TextInput::make('string_value')
|
||||
@@ -131,7 +134,7 @@ class StickerDetailResource extends Resource
|
||||
->label('String Font')
|
||||
->reactive()
|
||||
->options(function () {
|
||||
$files = File::files(storage_path('app/fonts'));
|
||||
$files = File::files(storage_path('app/private/fonts'));
|
||||
|
||||
return collect($files)
|
||||
->mapWithKeys(function ($file) {
|
||||
|
||||
Reference in New Issue
Block a user