Updated alignment and resource file order
Some checks failed
Gemini PR Review / Gemini PR Review (pull_request) Waiting to run
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Waiting to run
Laravel Larastan / larastan (pull_request) Waiting to run
Laravel Pint / pint (pull_request) Waiting to run
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled

This commit is contained in:
dhanabalan
2026-05-29 20:33:56 +05:30
parent 3f31425e4b
commit 17030f2c7f

View File

@@ -49,7 +49,7 @@ class TestingPanelReadingResource extends Resource
protected static ?string $navigationGroup = 'Testing Panel';
protected static ?int $navigationSort = 3;
protected static ?int $navigationSort = 4;
public static function form(Form $form): Form
{
@@ -438,7 +438,7 @@ class TestingPanelReadingResource extends Resource
Tables\Columns\TextColumn::make('motorTestingMaster.item.code')
->label('Item Code')
->alignCenter(),
Tables\Columns\TextColumn::make('motorTestingMaster.subassembly_code')
Tables\Columns\TextColumn::make('motorTestingMaster.subassembly_code')
->label('Subassembly Code')
->alignCenter(),
Tables\Columns\TextColumn::make('motorTestingMaster.item.description')
@@ -639,7 +639,7 @@ class TestingPanelReadingResource extends Resource
})->orderBy('code')->pluck('name', 'id');
}
//return ($userHas && strlen($userHas) > 0) ? Plant::where('id', $userHas)->pluck('name', 'id')->toArray() : Plant::orderBy('code')->pluck('name', 'id')->toArray();
// return ($userHas && strlen($userHas) > 0) ? Plant::where('id', $userHas)->pluck('name', 'id')->toArray() : Plant::orderBy('code')->pluck('name', 'id')->toArray();
})
->reactive()
->afterStateUpdated(function ($state, callable $set, callable $get) {
@@ -732,7 +732,7 @@ class TestingPanelReadingResource extends Resource
// ->pluck('description', 'id')
// ->toArray();
}
//return $query->pluck('description', 'description')->toArray();
// return $query->pluck('description', 'description')->toArray();
})
->reactive()
->afterStateUpdated(function ($state, callable $set, callable $get) {
@@ -969,8 +969,8 @@ class TestingPanelReadingResource extends Resource
// if (!empty($data['phase'])) {
// $indicators[] = 'Phase: ' . $data['phase'];
// }
if (!empty($data['connection'])) {
$indicators[] = 'Connection: ' . $data['connection'];
if (! empty($data['connection'])) {
$indicators[] = 'Connection: '.$data['connection'];
}
if (! empty($data['remark'])) {
$indicators[] = 'Remark: '.$data['remark'];