Added Page numbers for pdf for isi and non isi
This commit is contained in:
@@ -584,7 +584,7 @@ class TestingPanelReadingResource extends Resource
|
||||
{
|
||||
return Configuration::where('plant_id', $plantId)
|
||||
->where('c_name', 'MOTOR_CONNECTION')
|
||||
->pluck('c_value', 'id')
|
||||
->pluck('c_value', 'c_value')
|
||||
->toArray();
|
||||
}
|
||||
else
|
||||
@@ -810,7 +810,8 @@ class TestingPanelReadingResource extends Resource
|
||||
{
|
||||
$mappedData = collect($records)->map(function ($record) {
|
||||
return [
|
||||
'Date' => $record['created_at'] ?? '',
|
||||
// 'Date' => $record['created_at'] ?? '',
|
||||
'Date' =>date('Y-m-d', strtotime($record['created_at'] ?? '')),
|
||||
'Output' => $record['output'] ?? '',
|
||||
'Motor SNo' => $record['serial_number'] ?? '',
|
||||
'Item Code' => $record->motorTestingMaster->item->code ?? '',
|
||||
@@ -864,7 +865,8 @@ class TestingPanelReadingResource extends Resource
|
||||
|
||||
$mappedData = collect($records)->map(function ($record) {
|
||||
return [
|
||||
'Date' => $record['created_at'] ?? '',
|
||||
//'Date' => $record['created_at'] ?? '',
|
||||
'Date' =>date('Y-m-d', strtotime($record['created_at'] ?? '')),
|
||||
'Output' => $record['output'] ?? '',
|
||||
'Motor SNo' => $record['serial_number'] ?? '',
|
||||
'Item Code' => $record->motorTestingMaster->item->code ?? '',
|
||||
@@ -963,7 +965,8 @@ class TestingPanelReadingResource extends Resource
|
||||
{
|
||||
$mappedData = collect($records)->map(function ($record) {
|
||||
return [
|
||||
'Date' => $record['created_at'] ?? '',
|
||||
// 'Date' => $record['created_at'] ?? '',
|
||||
'Date' =>date('Y-m-d', strtotime($record['created_at'] ?? '')),
|
||||
'Output' => $record['output'] ?? '',
|
||||
'Motor SNo' => $record['serial_number'] ?? '',
|
||||
'Item Code' => $record->motorTestingMaster->item->code ?? '',
|
||||
@@ -1002,7 +1005,8 @@ class TestingPanelReadingResource extends Resource
|
||||
{
|
||||
$mappedData = collect($records)->map(function ($record) {
|
||||
return [
|
||||
'Date' => $record['created_at'] ?? '',
|
||||
// 'Date' => $record['created_at'] ?? '',
|
||||
'Date' =>date('Y-m-d', strtotime($record['created_at'] ?? '')),
|
||||
'Output' => $record['output'] ?? '',
|
||||
'Motor SNo' => $record['serial_number'] ?? '',
|
||||
'Item Code' => $record->motorTestingMaster->item->code ?? '',
|
||||
|
||||
Reference in New Issue
Block a user