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)
|
return Configuration::where('plant_id', $plantId)
|
||||||
->where('c_name', 'MOTOR_CONNECTION')
|
->where('c_name', 'MOTOR_CONNECTION')
|
||||||
->pluck('c_value', 'id')
|
->pluck('c_value', 'c_value')
|
||||||
->toArray();
|
->toArray();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -810,7 +810,8 @@ class TestingPanelReadingResource extends Resource
|
|||||||
{
|
{
|
||||||
$mappedData = collect($records)->map(function ($record) {
|
$mappedData = collect($records)->map(function ($record) {
|
||||||
return [
|
return [
|
||||||
'Date' => $record['created_at'] ?? '',
|
// 'Date' => $record['created_at'] ?? '',
|
||||||
|
'Date' =>date('Y-m-d', strtotime($record['created_at'] ?? '')),
|
||||||
'Output' => $record['output'] ?? '',
|
'Output' => $record['output'] ?? '',
|
||||||
'Motor SNo' => $record['serial_number'] ?? '',
|
'Motor SNo' => $record['serial_number'] ?? '',
|
||||||
'Item Code' => $record->motorTestingMaster->item->code ?? '',
|
'Item Code' => $record->motorTestingMaster->item->code ?? '',
|
||||||
@@ -864,7 +865,8 @@ class TestingPanelReadingResource extends Resource
|
|||||||
|
|
||||||
$mappedData = collect($records)->map(function ($record) {
|
$mappedData = collect($records)->map(function ($record) {
|
||||||
return [
|
return [
|
||||||
'Date' => $record['created_at'] ?? '',
|
//'Date' => $record['created_at'] ?? '',
|
||||||
|
'Date' =>date('Y-m-d', strtotime($record['created_at'] ?? '')),
|
||||||
'Output' => $record['output'] ?? '',
|
'Output' => $record['output'] ?? '',
|
||||||
'Motor SNo' => $record['serial_number'] ?? '',
|
'Motor SNo' => $record['serial_number'] ?? '',
|
||||||
'Item Code' => $record->motorTestingMaster->item->code ?? '',
|
'Item Code' => $record->motorTestingMaster->item->code ?? '',
|
||||||
@@ -963,7 +965,8 @@ class TestingPanelReadingResource extends Resource
|
|||||||
{
|
{
|
||||||
$mappedData = collect($records)->map(function ($record) {
|
$mappedData = collect($records)->map(function ($record) {
|
||||||
return [
|
return [
|
||||||
'Date' => $record['created_at'] ?? '',
|
// 'Date' => $record['created_at'] ?? '',
|
||||||
|
'Date' =>date('Y-m-d', strtotime($record['created_at'] ?? '')),
|
||||||
'Output' => $record['output'] ?? '',
|
'Output' => $record['output'] ?? '',
|
||||||
'Motor SNo' => $record['serial_number'] ?? '',
|
'Motor SNo' => $record['serial_number'] ?? '',
|
||||||
'Item Code' => $record->motorTestingMaster->item->code ?? '',
|
'Item Code' => $record->motorTestingMaster->item->code ?? '',
|
||||||
@@ -1002,7 +1005,8 @@ class TestingPanelReadingResource extends Resource
|
|||||||
{
|
{
|
||||||
$mappedData = collect($records)->map(function ($record) {
|
$mappedData = collect($records)->map(function ($record) {
|
||||||
return [
|
return [
|
||||||
'Date' => $record['created_at'] ?? '',
|
// 'Date' => $record['created_at'] ?? '',
|
||||||
|
'Date' =>date('Y-m-d', strtotime($record['created_at'] ?? '')),
|
||||||
'Output' => $record['output'] ?? '',
|
'Output' => $record['output'] ?? '',
|
||||||
'Motor SNo' => $record['serial_number'] ?? '',
|
'Motor SNo' => $record['serial_number'] ?? '',
|
||||||
'Item Code' => $record->motorTestingMaster->item->code ?? '',
|
'Item Code' => $record->motorTestingMaster->item->code ?? '',
|
||||||
|
|||||||
@@ -89,7 +89,8 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<!-- Row 1: Main Group Headings -->
|
<!-- Row 1: Main Group Headings -->
|
||||||
<tr>
|
<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">Motor SNo</th>
|
||||||
<th rowspan="3">Item Code</th>
|
<th rowspan="3">Item Code</th>
|
||||||
<th rowspan="3">Motor Type</th>
|
<th rowspan="3">Motor Type</th>
|
||||||
|
|||||||
@@ -88,7 +88,8 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<!-- Row 1: Main Group Headings -->
|
<!-- Row 1: Main Group Headings -->
|
||||||
<tr>
|
<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">Motor SNo</th>
|
||||||
<th rowspan="4">Item Code</th>
|
<th rowspan="4">Item Code</th>
|
||||||
<th rowspan="4">Motor Type</th>
|
<th rowspan="4">Motor Type</th>
|
||||||
|
|||||||
@@ -100,11 +100,14 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<!-- Table Column Headers -->
|
<!-- Table Column Headers -->
|
||||||
<tr>
|
<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">Output</th>
|
||||||
<th rowspan="3">Motor SNo</th>
|
<th rowspan="3">Motor SNo</th>
|
||||||
<th rowspan="3">Item Code</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="11">BEFORE FREE RUN</th>
|
||||||
<th colspan="12">AFTER FREE RUN</th>
|
<th colspan="12">AFTER FREE RUN</th>
|
||||||
<th colspan="3">LOCKED ROTOR TEST</th>
|
<th colspan="3">LOCKED ROTOR TEST</th>
|
||||||
|
|||||||
@@ -21,6 +21,11 @@
|
|||||||
.page-number:after {
|
.page-number:after {
|
||||||
content: "Page " counter(page);
|
content: "Page " counter(page);
|
||||||
}
|
}
|
||||||
|
/* .data-table {
|
||||||
|
width: auto;
|
||||||
|
table-layout: auto;
|
||||||
|
} */
|
||||||
|
|
||||||
.header-table { width: 100%; border-collapse: collapse;}
|
.header-table { width: 100%; border-collapse: collapse;}
|
||||||
.header-table td { vertical-align: middle; border-collapse: collapse; border: 1px solid #222; }
|
.header-table td { vertical-align: middle; border-collapse: collapse; border: 1px solid #222; }
|
||||||
.company-title { font-size: 16px; font-weight: bold; text-align: center; }
|
.company-title { font-size: 16px; font-weight: bold; text-align: center; }
|
||||||
@@ -101,11 +106,13 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<!-- Combine first 5 columns into one cell with rowspan 4 -->
|
<!-- 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">Output</th>
|
||||||
<th rowspan="4">Motor SNo</th>
|
<th rowspan="4">Motor SNo</th>
|
||||||
<th rowspan="4">Item Code</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 -->
|
<!-- Grouped columns -->
|
||||||
<th colspan="9">BEFORE FREE RUN</th>
|
<th colspan="9">BEFORE FREE RUN</th>
|
||||||
|
|||||||
Reference in New Issue
Block a user