diff --git a/public/images/cripumps.logo.png b/public/images/cripumps.logo.png new file mode 100644 index 000000000..d8db45c08 Binary files /dev/null and b/public/images/cripumps.logo.png differ diff --git a/public/images/isi_logo1.PNG b/public/images/isi_logo1.PNG new file mode 100644 index 000000000..e5353dfdb Binary files /dev/null and b/public/images/isi_logo1.PNG differ diff --git a/resources/views/exports/export-isi-pdf.blade.php b/resources/views/exports/export-isi-pdf.blade.php new file mode 100644 index 000000000..b7e254791 --- /dev/null +++ b/resources/views/exports/export-isi-pdf.blade.php @@ -0,0 +1,175 @@ + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @foreach($records as $record) + + + + + + + {{-- AFTER FREE RUN --}} + + + + + + + + + + {{-- LOCKED ROTOR TEST --}} + + + + + {{-- OTHERS --}} + + + + + + + @endforeach +
+ + + + + @php + $showIsiLogo = $records->every(fn ($record) => $record['isi_model']); + @endphp + + + + @php + $uniqueItemCodes = $records->pluck('Item Code')->unique(); + $kw = $hp = $phase = '-'; + if ($uniqueItemCodes->count() === 1) { + $firstRecord = $records->first(); + $kw = $firstRecord['kw'] ?? '-'; + $hp = $firstRecord['hp'] ?? '-'; + $phase = $firstRecord['phase'] ?? '-'; + } + @endphp + + +
+ Logo + +
C.R.I. Pumps Private Limited
+
Unit : {{ $plant?->name ?? '' }}
+
{{ $plant?->address ?? '' }}
+
MOTOR FREE RUN TEST REGISTER
+
+ @if ($showIsiLogo) + ISI Logo + @endif +
+ MOTOR KW / HP : {{ $kw }} / {{ $hp }} and PHASE : {{ $phase }} +
+
DateMotor SNoItem CodeMotor TypeAFTER FREE RUNLOCKED ROTOR TESTNo Load Pickup VoltageRoom Temp.High Voltage TestResultRemark
VoltageCurrentPowerIR.HotIR.CoolFrequencySpeedLeakage CurrentVoltageCurrentPower
(V)(A)(W)(Ohm)(Ohm)(Hz)(Rpm)(mA)(V)(A)(W)
{{ $record['Date'] ?? '' }}{{ $record['Motor SNo'] ?? '' }}{{ $record['Item Code'] ?? '' }}{{ $record['Motor Type'] ?? '' }}{{ $record['Voltage_After'] ?? '' }}{{ $record['Current_After'] ?? '' }}{{ $record['Power_After'] ?? '' }}{{ $record['IR_Hot'] ?? '' }}{{ $record['IR_Cool'] ?? '' }}{{ $record['Frequency_After'] ?? '' }}{{ $record['Speed_After'] ?? '' }}{{ $record['Leakage_Current'] ?? '' }}{{ $record['Voltage_Locked'] ?? '' }}{{ $record['Current_Locked'] ?? '' }}{{ $record['Power_Locked'] ?? '' }}{{ $record['No_Load_Pickup_Voltage'] ?? '' }}{{ $record['Room_Temp'] ?? '' }}{{ $record['High_Voltage_Test'] ?? '' }}{{ $record['Result'] ?? '' }}{{ $record['Remark'] ?? '' }}
+ + + diff --git a/resources/views/exports/export-isi-three-phase-pdf.blade.php b/resources/views/exports/export-isi-three-phase-pdf.blade.php new file mode 100644 index 000000000..3a805e5da --- /dev/null +++ b/resources/views/exports/export-isi-three-phase-pdf.blade.php @@ -0,0 +1,200 @@ + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @foreach($records as $record) + + {{-- COMMON FIELDS --}} + + + + + + {{-- AFTER FREE RUN --}} + + + + + {{-- IR Hot: R, Y, B --}} + + + + + {{-- IR Cool: R, Y, B --}} + + + + + + + + + {{-- LOCKED ROTOR TEST --}} + + + + + {{-- OTHER FIELDS --}} + + + + + + + + @endforeach +
+ + + + + @php + $showIsiLogo = $records->every(fn ($record) => $record['isi_model']); + @endphp + + + + @php + $uniqueItemCodes = $records->pluck('Item Code')->unique(); + $kw = $hp = $phase = '-'; + if ($uniqueItemCodes->count() === 1) { + $firstRecord = $records->first(); + $kw = $firstRecord['kw'] ?? '-'; + $hp = $firstRecord['hp'] ?? '-'; + $phase = $firstRecord['phase'] ?? '-'; + } + @endphp + + +
+ Logo + +
C.R.I. Pumps Private Limited
+
Unit : {{ $plant?->name ?? '' }}
+
{{ $plant?->address ?? '' }}
+
MOTOR FREE RUN TEST REGISTER
+
+ @if ($showIsiLogo) + ISI Logo + @endif +
+ MOTOR KW / HP : {{ $kw }} / {{ $hp }} and PHASE : {{ $phase }} +
+
DateMotor SNoItem CodeMotor TypeAFTER FREE RUNLOCKED ROTOR TESTNo Load Pickup VoltageRoom Temp.High Voltage TestResultRemark
VoltageCurrentPowerIR.HotIR.CoolFrequencySpeedLeakage CurrentVoltageCurrentPower
RYBRYB
(V) (A) (W) (Ohm) (Ohm) (Ohm) (Ohm) (Ohm) (Ohm) (Hz) (Rpm) (mA) (V) (A) (W)
{{ $record['Date'] ?? '' }}{{ $record['Motor SNo'] ?? '' }}{{ $record['Item Code'] ?? '' }}{{ $record['Motor Type'] ?? '' }}{{ $record['Voltage_After'] ?? '' }}{{ $record['Current_After'] ?? '' }}{{ $record['Power_After'] ?? '' }}{{ $record['IR_Hot_R'] ?? '' }}{{ $record['IR_Hot_Y'] ?? '' }}{{ $record['IR_Hot_B'] ?? '' }}{{ $record['IR_Cool_R'] ?? '' }}{{ $record['IR_Cool_Y'] ?? '' }}{{ $record['IR_Cool_B'] ?? '' }}{{ $record['Frequency_After'] ?? '' }}{{ $record['Speed_After'] ?? '' }}{{ $record['Leakage_Current'] ?? '' }}{{ $record['Voltage_Locked'] ?? '' }}{{ $record['Current_Locked'] ?? '' }}{{ $record['Power_Locked'] ?? '' }}{{ $record['No_Load_Pickup_Voltage'] ?? '' }}{{ $record['Room_Temp'] ?? '' }}{{ $record['High_Voltage_Test'] ?? '' }}{{ $record['Result'] ?? '' }}{{ $record['Remark'] ?? '' }}
+ + + diff --git a/resources/views/exports/export-three-phase-pdf.blade.php b/resources/views/exports/export-three-phase-pdf.blade.php new file mode 100644 index 000000000..134238e70 --- /dev/null +++ b/resources/views/exports/export-three-phase-pdf.blade.php @@ -0,0 +1,213 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @foreach ($records as $record) + + + + + + + + {{-- BEFORE FREE RUN --}} + + + + + + + + + + + + + {{-- AFTER FREE RUN --}} + + + + + + + + + + + + + + {{-- LOCKED ROTOR TEST --}} + + + + + {{-- Other Info --}} + + + + + + + + + + @endforeach + + +
+ + + + + {{-- --}} + @php + $showIsiLogo = $records->every(fn ($record) => $record['isi_model']); + @endphp + + @if ($showIsiLogo) + + @else + + @endif + + + {{-- @php + $firstRecord = $records->first(); + $kw = $firstRecord['kw'] ?? '-'; + $hp = $firstRecord['hp'] ?? '-'; + $phase = $firstRecord['phase'] ?? '-'; + @endphp --}} + + @php + $uniqueItemCodes = $records->pluck('Item Code')->unique(); + + //Default values + $kw = '-'; + $hp = '-'; + $phase = '-'; + + // If there's exactly one unique item code, extract values from the first record + if ($uniqueItemCodes->count() === 1) { + $firstRecord = $records->first(); + $kw = $firstRecord['kw'] ?? '-'; + $hp = $firstRecord['hp'] ?? '-'; + $phase = $firstRecord['phase'] ?? '-'; + } + @endphp + + +
+ Left Logo + +
C.R.I. Pumps Private Limited
+
Unit : {{ $plant?->name ?? '' }}
+
{{ $plant?->address ?? '' }}
+
MOTOR FREE RUN TEST REGISTER
+
+ ISI Logo + + ISI Logo +
+ MOTOR KW / HP : {{ $kw }} / {{ $hp }} and PHASE : {{ $phase }} +
+
DateOutputMotor SNoItem CodeMotor TypeBEFORE FREE RUNAFTER FREE RUNLOCKED ROTOR TESTNo Load Pickup Voltage (V)Room Temp. (°C)High Voltage Test (V)Batch NumberBatch CountResultRemarkTested By
Voltage (V)Current (A)Power (W)Resistance (Ohm)Insulation Resistance (Ohm)Frequency (Hz)Speed (Rpm)Voltage (V)Current (A)Power (W)IR.Hot (Ohm)IR.Cool (Ohm)Frequency (Hz)Speed (Rpm)Leakage Current (mA)Voltage (V)Current (A)Power (W)
RYYBBRRYBRYBRYB
{{ $record['Date'] ?? '' }}{{ $record['Output'] ?? '' }}{{ $record['Motor SNo'] ?? '' }}{{ $record['Item Code'] ?? '' }}{{ $record['Motor Type'] ?? '' }}{{ $record['Voltage_Before'] ?? '' }}{{ $record['Current_Before'] ?? '' }}{{ $record['Power_Before'] ?? '' }}{{ $record['Resistance_RY'] ?? '' }}{{ $record['Resistance_YB'] ?? '' }}{{ $record['Resistance_BR'] ?? '' }}{{ $record['Insulation_Resistance_R'] ?? '' }}{{ $record['Insulation_Resistance_Y'] ?? '' }}{{ $record['Insulation_Resistance_B'] ?? '' }}{{ $record['Frequency_Before'] ?? '' }}{{ $record['Speed_Before'] ?? '' }}{{ $record['Voltage_After'] ?? '' }}{{ $record['Current_After'] ?? '' }}{{ $record['Power_After'] ?? '' }}{{ $record['IR_Hot_R'] ?? '' }}{{ $record['IR_Hot_Y'] ?? '' }}{{ $record['IR_Hot_B'] ?? '' }}{{ $record['IR_Cool_R'] ?? '' }}{{ $record['IR_Cool_Y'] ?? '' }}{{ $record['IR_Cool_B'] ?? '' }}{{ $record['Frequency_After'] ?? '' }}{{ $record['Speed_After'] ?? '' }}{{ $record['Leakage_Current'] ?? '' }}{{ $record['Voltage_Locked'] ?? '' }}{{ $record['Current_Locked'] ?? '' }}{{ $record['Power_Locked'] ?? '' }}{{ $record['No_Load_Pickup_Voltage'] ?? '' }}{{ $record['Room_Temp'] ?? '' }}{{ $record['High_Voltage_Test'] ?? '' }}{{ $record['Batch_Number'] ?? '' }}{{ $record['Batch_Count'] ?? '' }}{{ $record['Result'] ?? '' }}{{ $record['Remark'] ?? '' }}{{ $record['Tested_By'] ?? '' }}
+ + diff --git a/resources/views/exports/testingpanel-pdf.blade.php b/resources/views/exports/testingpanel-pdf.blade.php new file mode 100644 index 000000000..932277984 --- /dev/null +++ b/resources/views/exports/testingpanel-pdf.blade.php @@ -0,0 +1,231 @@ + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @foreach($records as $record) + + + + + + + + + {{-- BEFORE FREE RUN --}} + + + + + + + + + + + + {{-- AFTER FREE RUN --}} + + + + + + + + + + {{-- LOCKED ROTOR TEST --}} + + + + + {{-- Other Info --}} + + + + + + + + + + @endforeach +
+ + + + + {{-- --}} + @php + $showIsiLogo = $records->every(fn ($record) => $record['isi_model']); + @endphp + + @if ($showIsiLogo) + + @else + + @endif + + + {{-- @php + $firstRecord = $records->first(); + $kw = $firstRecord['kw'] ?? '-'; + $hp = $firstRecord['hp'] ?? '-'; + $phase = $firstRecord['phase'] ?? '-'; + @endphp --}} + + @php + $uniqueItemCodes = $records->pluck('Item Code')->unique(); + + //Default values + $kw = '-'; + $hp = '-'; + $phase = '-'; + + // If there's exactly one unique item code, extract values from the first record + if ($uniqueItemCodes->count() === 1) { + $firstRecord = $records->first(); + $kw = $firstRecord['kw'] ?? '-'; + $hp = $firstRecord['hp'] ?? '-'; + $phase = $firstRecord['phase'] ?? '-'; + } + @endphp + + +
+ Left Logo + +
C.R.I. Pumps Private Limited
+
Unit : {{ $plant?->name ?? '' }}
+
{{ $plant?->address ?? '' }}
+
MOTOR FREE RUN TEST REGISTER
+
+ ISI Logo + + ISI Logo +
+ MOTOR KW / HP : {{ $kw }} / {{ $hp }} and PHASE : {{ $phase }} +
+
DateOutputMotor SNoItem CodeMotor TypeBEFORE FREE RUNAFTER FREE RUNLOCKED ROTOR TESTNo Load Pickup VoltageRoom Temp.High Voltage TestBatch NumberBatch CountResultRemarkTested By
VoltageCurrentPowerResistanceInsulation ResistanceFrequencySpeedVoltageCurrentPowerIR.HotIR.CoolFrequencySpeedLeakage CurrentVoltageCurrentPower
RYYBBR
(V)(A)(W)(Ohm)(Ohm)(Ohm)(Ohm)(Hz)(Rpm)(V)(A)(W)(Ohm)(Ohm)(Hz)(Rpm)(mA)(V)(A)(W)
{{ $record['Date'] ?? '' }}{{ $record['Output'] ?? '' }}{{ $record['Motor SNo'] ?? '' }}{{ $record['Item Code'] ?? '' }}{{ $record['Motor Type'] ?? '' }}{{ $record['Voltage_Before'] ?? '' }}{{ $record['Current_Before'] ?? '' }}{{ $record['Power_Before'] ?? '' }}{{ $record['Resistance_RY'] ?? '' }}{{ $record['Resistance_YB'] ?? '' }}{{ $record['Resistance_BR'] ?? '' }}{{ $record['Insulation_BBR'] ?? '' }}{{ $record['Frequency_Before'] ?? '' }}{{ $record['Speed_Before'] ?? '' }}{{ $record['Voltage_After'] ?? '' }}{{ $record['Current_After'] ?? '' }}{{ $record['Power_After'] ?? '' }}{{ $record['IR_Hot'] ?? '' }}{{ $record['IR_Cool'] ?? '' }}{{ $record['Frequency_After'] ?? '' }}{{ $record['Speed_After'] ?? '' }}{{ $record['Leakage_Current'] ?? '' }}{{ $record['Voltage_Locked'] ?? '' }}{{ $record['Current_Locked'] ?? '' }}{{ $record['Power_Locked'] ?? '' }}{{ $record['No_Load_Pickup_Voltage'] ?? '' }}{{ $record['Room_Temp'] ?? '' }}{{ $record['High_Voltage_Test'] ?? '' }}{{ $record['Batch_Number'] ?? '' }}{{ $record['Batch_Count'] ?? '' }}{{ $record['Result'] ?? '' }}{{ $record['Remark'] ?? '' }}{{ $record['Tested_By'] ?? '' }}
+ +