@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

BIDPAC Import #{{ $bidpacImport->id }}

Import dashboard summary for {{ $bidpacImport->pdf_original_name }}

{{ $importStatus }} Import Another PDF

Import Summary Card

Rows Imported
{{ number_format($bidpacImport->imported_rows) }}
Imported At
{{ $bidpacImport->created_at?->format('M d, Y h:i A') }}
File
{{ $bidpacImport->pdf_original_name }}
Imported by {{ $bidpacImport->user?->username ?? 'Unknown' }}
Roster Rows
{{ number_format($stats['total_rows']) }}
Crew Parsed
{{ number_format($stats['unique_employees']) }}
Pages Parsed
{{ number_format($stats['pages_parsed']) }}

Data Table

@forelse($rosterRows as $row) @empty @endforelse
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.
@if($rosterRows->hasPages()) @endif
@endsection