Add external import sources, work history, screening fields and Phase 1 docs
- New ExternalImportSource and ExternalWorkHistoryEntry models, controller and migrations - Screening fields on external profile imports - Admin and provider profile views, routes and workflow tests updated - Phase 1 validation, route inventory, gap report template and roadmap docs - Add the Google Sheets work-order parser tool (tools/google-sheets-wo-parser)
This commit is contained in:
@@ -94,6 +94,8 @@
|
||||
@php
|
||||
$average = $profile->average_stars ? round($profile->average_stars, 1) : null;
|
||||
$imports = $profile->externalImports;
|
||||
$visibleImports = $imports->filter->publiclyVisible();
|
||||
$importedWorkCount = $visibleImports->sum(fn ($import) => $import->workHistoryEntries->count());
|
||||
@endphp
|
||||
<a href="{{ route('providers.show', $profile) }}" class="tse-panel block p-5 transition hover:border-sky-300 hover:shadow-md dark:hover:border-sky-700">
|
||||
<div class="flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between">
|
||||
@@ -121,8 +123,11 @@
|
||||
@if ($profile->availability_notes)
|
||||
<x-badge tone="amber">Availability noted</x-badge>
|
||||
@endif
|
||||
@if ($imports->isNotEmpty())
|
||||
<x-badge tone="slate">{{ $imports->count() }} imported profile{{ $imports->count() === 1 ? '' : 's' }}</x-badge>
|
||||
@if ($visibleImports->isNotEmpty())
|
||||
<x-badge tone="slate">{{ $visibleImports->count() }} imported profile{{ $visibleImports->count() === 1 ? '' : 's' }}</x-badge>
|
||||
@endif
|
||||
@if ($importedWorkCount > 0)
|
||||
<x-badge tone="amber">{{ number_format($importedWorkCount) }} external jobs</x-badge>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user