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

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

@if ($run->status === 'completed') Go to Attendance 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 Employee ID Employee CODE Status Locked By Started At Finished At Error
{{ $loop->iteration }} {{ $log->employee_id }} {{ $log->employee_code }} {{ $log->status }} {{ $log->locked_by }} {{ $log->started_at }} {{ $log->finished_at }} {{ $log->error }}
{{ $logs->links() }}
@endsection @push('footer-script') @endpush