@extends('layouts.master') @section('content')
{{ $title }}
{{-- Display Error Message --}} @if(isset($error) || session('error'))
{{ $error ?? session('error') }}
@endif {{-- Display Success Message --}} @if(session('success'))
{{ session('success') }}
@endif
{{-- Step 1: Display Uploaded Information --}}
@foreach($earningCodes as $code) @endforeach @foreach($summary as $row) @foreach($earningCodes as $code) @endforeach @endforeach
Man No. Name Department{{ $code }}
{{ $row['manno'] }} {{ $row['employee_name'] }} {{ $row['department'] }} {{ isset($row['earnings'][$code]) ? number_format($row['earnings'][$code]['amount'], 2) : '-' }}
{{-- Overall Total Card --}}
Total Amount

ZMW {{ number_format($validatedTotalAmount, 2, '.', ',') }}

{{-- Earning Code Totals Card --}}
Earning Totals
@foreach($earningTotals as $code => $total) @endforeach
Earning Code Amount (ZMW)
{{ $code }} {{ number_format($total, 2, '.', ',') }}
@csrf @php $pamPayRunPeriods = \App\Models\PamPayRunPeriod::where('tax_year_id', $pamPayroll->currentPamPayRun->pamTaxTable->tax_year_id) ->where('period_status', 'active')->get(); @endphp
Recurrence Frequency @php $totalPeriods = 12; $fieldNamePrefix = 'recurrence_period_'; @endphp @for ($period = 1; $period <= $totalPeriods; $period++) @if($period % 6==1) {{-- Start a new row after every 6 periods --}}
@endif
@if ($period % 6 == 0 || $period == $totalPeriods) {{-- Close the row after every 6 periods or at the end --}}
@endif @endfor
Finish!
You have reached the last step of the upload process!
Errors
  • @if (!empty($errors_import)) @foreach($errors_import as $item) @endforeach @else @endif
    {{ $item }}
    No errors found with the uploaded data
@endsection @section('scripts') @endsection @section('modal') @endsection