@extends('app-new') @push('head-script') @endpush @push('content-header') @endpush @push('prev-next-head')
@endpush @section('content')

Payroll Run Status - {{ $run->status }}

{{-- Run Worker --}} @if ($run->status === 'completed') Go to Salary Fetch @endif
@php $status = session('status'); @endphp @if ($status)
@if (is_array($status)) @if (!empty($status['messages']) && is_array($status['messages'])) {{ implode(' ', $status['messages']) }} @elseif (!empty($status['header'])) {{ $status['header'] }} @else {{ json_encode($status) }} @endif @else {{ $status }} @endif
@endif
Status {{ $run->status }} Payroll Period {{ $run->payroll_period_id}}
Total Records {{ $run->total_records }} Completed {{ $run->done_records }}
Failed {{ $run->failed_records }} Pending {{ max(0, $run->total_records - $run->done_records - $run->failed_records) }}
Started At {{ $run->started_at }} Finished At {{ $run->finished_at }}
Month {{ $run->month }} Year {{ $run->year }}
Created At {{ $run->created_at }} Updated At {{ $run->updated_at }}
@foreach ($logs as $log) @endforeach
# ID Attendance ID Employee ID Level Stage Message Exception Class Exception Message Timestamp
{{ $logs->firstItem() ? ($logs->firstItem() + $loop->index) : $loop->iteration }} {{ $log->id }} {{ $log->payroll_attdance_id }} {{ $log->employee_id }} {{ $log->level }} {{ $log->stage }} {{ $log->message }} {{ $log->exception_class }} {{ $log->exception_message }} {{ $log->created_at }}
{{ $logs->links() }}
@endsection @push('footer-script') @endpush