@php $pageNum = 0; @endphp {{-- ====================================================== --}} {{-- PAGE 1: COVER --}} {{-- ====================================================== --}} @php $pageNum++; @endphp
{{ $profile->NAME_EN ?? '' }}
{{ $cityEn }}
{{ $header->branch }}
{{ $profile->NAME_EN ?? '' }}
Quality Control
{{ $profile->NAME_AR ?? $profile->NAME_EN ?? '' }}
(ذات مسؤولية محدودة)
{{ $cityAr }}
{{ $branchAr }}
Levey-Jennings Control Chart
Branch {{ $header->branch }} Reg. Date From {{ $header->reg_date_from }}
Analyzer {{ $header->analyzer }} Reg. Date To {{ $header->reg_date_to }}
Control {{ $header->controls }} Total No. of Accepted Points {{ $totals->pass }}
Service / Test {{ $header->service_test }} Total No. of Rejected Points {{ $totals->fail }}
Total No. of Warning Points {{ $totals->warning }}
{{-- ====================================================== --}} {{-- PAGES 2+: L-J CHARTS (split every 30 points) --}} {{-- ====================================================== --}} @foreach($chartPages as $chartPage) @php $pageNum++; @endphp
{{ $profile->NAME_EN ?? '' }}
{{ $cityEn }}
{{ $header->branch }}
{{ $profile->NAME_EN ?? '' }}
Quality Control
{{ $profile->NAME_AR ?? $profile->NAME_EN ?? '' }}
(ذات مسؤولية محدودة)
{{ $cityAr }}
{{ $branchAr }}
Levey-Jennings Control Chart
Branch {{ $header->branch }} Reg. Date From {{ $header->reg_date_from }}
Analyzer {{ $header->analyzer }} Reg. Date To {{ $header->reg_date_to }}
Control {{ $header->controls }}
Service / Test {{ $header->service_test }}
@include('operations.partials.lj-svg-chart', [ 'lots' => $chartPage['lots'], 'isFirstChart' => $chartPage['is_first'], ])
@endforeach {{-- ====================================================== --}} {{-- PAGE 3: CALCULATED VALUES --}} {{-- ====================================================== --}} @php $pageNum++; @endphp
{{ $profile->NAME_EN ?? '' }}
{{ $cityEn }}
{{ $header->branch }}
{{ $profile->NAME_EN ?? '' }}
Quality Control
{{ $profile->NAME_AR ?? $profile->NAME_EN ?? '' }}
(ذات مسؤولية محدودة)
{{ $cityAr }}
{{ $branchAr }}
Levey-Jennings Control Chart
Branch {{ $header->branch }} Reg. Date From {{ $header->reg_date_from }}
Analyzer {{ $header->analyzer }} Reg. Date To {{ $header->reg_date_to }}
Control {{ $header->controls }}
Service / Test {{ $header->service_test }}
@forelse($lotValues as $lot) @empty @endforelse
Control Test Lot No Points Calculated Values Target
Mean target Target SD Target CV Mean SD CV
{{ $lot['control'] }} {{ $lot['test'] }} {{ $lot['lot_no'] }} {{ $lot['points'] }} {{ $lot['mean_target'] }} {{ $lot['target_sd'] }} {{ $lot['target_cv'] }} {{ $lot['calc_mean'] }} {{ $lot['calc_sd'] }} {{ $lot['calc_cv'] }}
No data
{{-- ====================================================== --}} {{-- PAGES 4+: DETAIL (paginated 4 rows per page) --}} {{-- ====================================================== --}} @foreach($detailChunks as $chunk) @php $pageNum++; @endphp
{{ $profile->NAME_EN ?? '' }}
{{ $cityEn }}
{{ $header->branch }}
{{ $profile->NAME_EN ?? '' }}
Quality Control
{{ $profile->NAME_AR ?? $profile->NAME_EN ?? '' }}
(ذات مسؤولية محدودة)
{{ $cityAr }}
{{ $branchAr }}
Levey-Jennings Control Chart
Branch {{ $header->branch }} Reg. Date From {{ $header->reg_date_from }}
Analyzer {{ $header->analyzer }} Reg. Date To {{ $header->reg_date_to }}
Control {{ $header->controls }}
Service / Test {{ $header->service_test }}
@foreach($chunk as $row) @endforeach
Control Test Lot No Status Result Westgard Rule Result Date Comment Verified By Verification Date Reviewed by
{{ $row['control'] }} {{ $row['test'] }} {{ $row['lot_no'] }} {{ $row['status'] }} {{ $row['result'] }} {{ $row['westgard_rule'] }} {{ $row['result_date'] }} {{ $row['comment'] }} {{ $row['verified_by'] }} {{ $row['verification_date'] }} {{ $row['reviewed_by'] }}
@endforeach