@extends('layouts.app') @section('title', 'BIDPAC Import Results | PairingPal') @section('content') @php $importStatus = $stats['total_rows'] > 0 ? 'Parsed' : 'No Rows Found'; $importStatusClass = $stats['total_rows'] > 0 ? 'text-bg-success' : 'text-bg-warning'; $sortUrl = static function (string $column) use ($sort, $direction): string { $nextDirection = $sort === $column && $direction === 'asc' ? 'desc' : 'asc'; return request()->fullUrlWithQuery([ 'sort' => $column, 'direction' => $nextDirection, ]); }; $sortIcon = static function (string $column) use ($sort, $direction): string { if ($sort !== $column) { return '↕'; } return $direction === 'asc' ? '↑' : '↓'; }; @endphp
Import dashboard summary for {{ $bidpacImport->pdf_original_name }}
| Page {{ $sortIcon('page') }} | Employee # {{ $sortIcon('employee_no') }} | Initial {{ $sortIcon('initial') }} | Last Name {{ $sortIcon('last_name') }} | Carry-In Flag {{ $sortIcon('carryin_flag') }} | Block Hours {{ $sortIcon('block_hours') }} | Carry-In Hours {{ $sortIcon('carryin_hours') }} | Details |
|---|---|---|---|---|---|---|---|
| {{ $row->page }} | {{ $row->employee_no }} | {{ $row->initial ?: '—' }} | {{ $row->last_name ?: '—' }} | {{ $row->carryin_flag ?: '—' }} | {{ $row->block_hours !== null ? number_format((float) $row->block_hours, 2) : '—' }} | {{ $row->carryin_hours !== null ? number_format((float) $row->carryin_hours, 2) : '—' }} | |
|
Codes
{{ $row->codes ?: '—' }}
|
|||||||
| No roster rows were parsed from this BIDPAC PDF. | |||||||