@extends('layouts.master') @section('content')

{{ $reportTitle }} for Pay Run ID: {{ $payRunId }}

{{-- Stats --}}
Total Mismatches

{{ $totalMismatches }}

People Affected

{{ $uniquePeople }}

Gross Errors

{{ $grossMismatches }}

Net Errors

{{ $netMismatches }}

Deductions Errors

{{ $deduMismatches }}

{{-- Results --}} @if($results->isEmpty())
No mismatches found ✅
@else @foreach($results as $row)
Man Number: {{ $row->man_number }}
Field Payroll (Old) Payroll Updated (New)
Gross Earnings {{ number_format($row->old_gross, 2) }} {{ number_format($row->new_gross, 2) }}
Net Pay {{ number_format($row->old_net, 2) }} {{ number_format($row->new_net, 2) }}
Deductions {{ number_format($row->old_deductions, 2) }} {{ number_format($row->new_deductions, 2) }}
@endforeach @endif
@endsection