@include('dashboards.header')

Transformer Overview

🔌
Rated Capacity
{{ round($data->kva) }} kVA
Primary Voltage
{{ round($data->primary_voltage * 47.82608695652174)/1000 }} kV
Secondary Voltage
{{ round($data->voltage_phase_a) }}, {{ round($data->voltage_phase_b) }}, {{ round($data->voltage_phase_c) }} V
Load Level
@php $ratedKVA = floatval($data->kva); // Get the latest kVA from graph_data (assuming kva1, kva2, kva3 are columns) $latestLog = $graph_data->sortByDesc('created_at')->first(); // Latest log entry if($latestLog) { // Sum of kva1, kva2, kva3 from the latest log $currentKVA = floatval($latestLog->kva1 ?? 0) + floatval($latestLog->kva2 ?? 0) + floatval($latestLog->kva3 ?? 0); } else { $currentKVA = 0; } // $loadLevel = ($ratedKVA > 0) ? ($currentKVA / $ratedKVA) * 100 : 0; $loadLevel = ($ratedKVA > 0) ? ($data->total_apparent_power / $ratedKVA) * 100 : 0; @endphp
{{ round($loadLevel) }} %
Current Load: {{ round($data->total_apparent_power) }} kVA

Voltage Readings

L1 (R)
{{ number_format($data->voltage_phase_a,0) ?? 0}}
V
{{--
Avg: 0.00 V
PF: 0.00
--}}
L2 (S)
{{ number_format($data->voltage_phase_b,0) ?? 0}}
V
{{--
Avg: 0.00 V
PF: 0.00
--}}
L3 (T)
{{ number_format($data->voltage_phase_c,0) ?? 0}}
V
{{--
Avg: 0.00 V
PF: 0.00
--}}

Current Readings

L1 (R)
{{ number_format($data->current_phase_a,0) ?? 0}}
A
{{--
Avg: 0.00 A
PF: 0.00
--}}
L2 (S)
{{ number_format($data->current_phase_b,0) ?? 0}}
A
{{--
Avg: 0.00 A
PF: 0.00
--}}
L3 (T)
{{ number_format($data->current_phase_c,0) ?? 0}}
A
{{--
Avg: 0.00 A
PF: 0.00
--}}
{{-- NCloss of Three Phase Calculations --}} @php $latestCurrents = $graph_data->first(); $R = 0.81285; // AAC 50mm², 1.5 km if ($latestCurrents) { $nc = sqrt( pow($latestCurrents->i1, 2) + pow($latestCurrents->i2, 2) + pow($latestCurrents->i3, 2) - ($latestCurrents->i1 * $latestCurrents->i2) - ($latestCurrents->i2 * $latestCurrents->i3) - ($latestCurrents->i3 * $latestCurrents->i1) ); } else { $nc = $latestCurrents->nc ?? 0; } $nc = round($nc, 2); // Neutral Loss (I²R) $nc_loss = pow($nc, 2) * $R; // Watts $nc_loss_kw= number_format($nc_loss / 1000, 3); @endphp

Neutral Current & Unbalance

Neutral Current
{{ round($data->neutral_current) }}
A
Losses: {{$nc_loss_kw}}
Current Unbalance
{{ round($data->current_unbalance) }}
%
Status: Normal
Max: {{ round($maxCurrentUnbalanceLastWeek) }} %
Voltage Unbalance
{{ round($data->voltage_unbalance) }}
%
Status: Normal
Max: {{ round($maxVoltageUnbalanceLastWeek) }} %

Unbalance Alerts

{{ $unbalanceStatus }}
Current Unbalance
{{round($currentUnbalanceAtAlert)}}%
{{--
Threshold: 10.00%
--}}
Time
{{ $unbalanceTime }}
Duration
{{ $unbalanceTimeDuration }}
{{--
Alert after: 6 min
--}}
Phase Analysis
L1: {{ number_format($currentAtUnbalance['phase_a'], 0) }}
A
L2: {{ number_format($currentAtUnbalance['phase_b'], 0) }}
A
L3: {{ number_format($currentAtUnbalance['phase_c'], 0) }}
A
Voltage Unbalance
{{round($voltageUnbalanceAtAlert)}}%
{{--
Threshold: 10.00%
--}}
Time
{{ $unbalanceTime }}
Duration
{{ $unbalanceTimeDuration }}
{{--
Alert after: 6 min
--}}
Phase Analysis
L1: {{ number_format($voltageAtUnbalance['voltage_phase_a'], 0 ) }}
V
L2: {{ number_format($voltageAtUnbalance['voltage_phase_b'], 0 ) }}
V
L3: {{ number_format($voltageAtUnbalance['voltage_phase_c'], 0 ) }}
V
Three-Phase Power Calculations
Total Active Power
{{ $data->total_active_power }} kW
Total Apparent Power
{{ $data->total_apparent_power }} kVA
Total Reactive Power
{{ $data->total_reactive_power }} kVAR
Overall Power Factor
{{ $latestCurrents ? round((($latestCurrents->pf1 + $latestCurrents->pf2 + $latestCurrents->pf3) / 3), 2) : 0 }}
Energy
@php $diff = 0; @endphp @if($graph_data->count() >= 2) @php $first = \Carbon\Carbon::parse($graph_data[0]->dtime); $second = \Carbon\Carbon::parse($graph_data[1]->dtime); $diff = $first->floatDiffInHours($second); @endphp @endif {{ number_format($diff * $data->total_active_power, 2) }} kWh
Load Balance Efficiency
@php $Pin = $data->total_active_power; $POut= $Pin - $nc_loss_kw; @endphp {{-- {{ $data->efficiency }} %--}} {{ round(($POut / $Pin) * 100, 2) }} % {{-- Load Balalncong eeficeny--}}

Dashboard Settings