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 ?? '',
|
||||
|
||||
@@ -89,7 +89,8 @@
|
||||
<thead>
|
||||
<!-- Row 1: Main Group Headings -->
|
||||
<tr>
|
||||
<th rowspan="3">Date</th>
|
||||
{{-- <th rowspan="3">Date</th> --}}
|
||||
<th rowspan="3" style="width: 40px; white-space: nowrap;">Date</th>
|
||||
<th rowspan="3">Motor SNo</th>
|
||||
<th rowspan="3">Item Code</th>
|
||||
<th rowspan="3">Motor Type</th>
|
||||
|
||||
@@ -88,7 +88,8 @@
|
||||
<thead>
|
||||
<!-- Row 1: Main Group Headings -->
|
||||
<tr>
|
||||
<th rowspan="4">Date</th>
|
||||
{{-- <th rowspan="4">Date</th> --}}
|
||||
<th rowspan="4" style="width: 40px; white-space: nowrap;">Date</th>
|
||||
<th rowspan="4">Motor SNo</th>
|
||||
<th rowspan="4">Item Code</th>
|
||||
<th rowspan="4">Motor Type</th>
|
||||
|
||||
@@ -100,11 +100,14 @@
|
||||
<thead>
|
||||
<!-- Table Column Headers -->
|
||||
<tr>
|
||||
<th rowspan="3">Date</th>
|
||||
{{-- <th rowspan="3">Date</th> --}}
|
||||
<th rowspan="3" style="width: 40px; white-space: nowrap;">Date</th>
|
||||
<th rowspan="3">Output</th>
|
||||
<th rowspan="3">Motor SNo</th>
|
||||
<th rowspan="3">Item Code</th>
|
||||
<th rowspan="3">Motor Type</th>
|
||||
{{-- <th rowspan="3">Motor Type</th> --}}
|
||||
<th rowspan="3" style="white-space: nowrap;">Motor Type</th>
|
||||
|
||||
<th colspan="11">BEFORE FREE RUN</th>
|
||||
<th colspan="12">AFTER FREE RUN</th>
|
||||
<th colspan="3">LOCKED ROTOR TEST</th>
|
||||
|
||||
@@ -21,6 +21,11 @@
|
||||
.page-number:after {
|
||||
content: "Page " counter(page);
|
||||
}
|
||||
/* .data-table {
|
||||
width: auto;
|
||||
table-layout: auto;
|
||||
} */
|
||||
|
||||
.header-table { width: 100%; border-collapse: collapse;}
|
||||
.header-table td { vertical-align: middle; border-collapse: collapse; border: 1px solid #222; }
|
||||
.company-title { font-size: 16px; font-weight: bold; text-align: center; }
|
||||
@@ -101,11 +106,13 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<!-- Combine first 5 columns into one cell with rowspan 4 -->
|
||||
<th rowspan="4">Date</th>
|
||||
{{-- <th rowspan="4">Date</th> --}}
|
||||
<th rowspan="4" style="width: 40px; white-space: nowrap;">Date</th>
|
||||
<th rowspan="4">Output</th>
|
||||
<th rowspan="4">Motor SNo</th>
|
||||
<th rowspan="4">Item Code</th>
|
||||
<th rowspan="4">Motor Type</th>
|
||||
{{-- <th rowspan="4">Motor Type</th> --}}
|
||||
<th rowspan="4" style="white-space: nowrap;">Motor Type</th>
|
||||
|
||||
<!-- Grouped columns -->
|
||||
<th colspan="9">BEFORE FREE RUN</th>
|
||||
|
||||
Reference in New Issue
Block a user