@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($data as $item) @php $pamEmp = \App\Models\PamEmp::where('man_number', $item['manno'])->first(); if (!$pamEmp) continue; // Skip if no matching employee @endphp @endforeach
Man No. Name Department Amount
{{ $pamEmp->man_number }} {{ $pamEmp->pamHrUser->title }} {{ $pamEmp->pamHrUser->first_name }} {{ $pamEmp->pamHrUser->last_name }} {{ $pamEmp->pamEmpDepartment->name }} {{ number_format($item['amount'], 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