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:
@@ -12,7 +12,7 @@ class ProviderProfileController extends Controller
|
||||
{
|
||||
public function index(Request $request): View
|
||||
{
|
||||
$profiles = ProviderProfile::with('user', 'externalImports', 'taxonomyTerms', 'attachments', 'ratings.user')
|
||||
$profiles = ProviderProfile::with('user', 'externalImports.workHistoryEntries', 'taxonomyTerms', 'attachments', 'ratings.user')
|
||||
->withAvg(['ratings as average_stars' => fn ($query) => $query->whereNotNull('stars')], 'stars')
|
||||
->withCount('ratings');
|
||||
|
||||
@@ -73,7 +73,13 @@ class ProviderProfileController extends Controller
|
||||
abort_unless($request->user()->hasRole('provider'), 403);
|
||||
|
||||
return view('providers.edit', [
|
||||
'profile' => $request->user()->providerProfile?->load('attachments', 'externalImports.attachments', 'taxonomyTerms'),
|
||||
'profile' => $request->user()->providerProfile?->load(
|
||||
'attachments',
|
||||
'externalImports.attachments',
|
||||
'externalImports.workHistoryEntries',
|
||||
'externalImportSources.externalProfileImport',
|
||||
'taxonomyTerms',
|
||||
),
|
||||
'technicianLevels' => config('technician-levels'),
|
||||
'taxonomyTerms' => TaxonomyTerm::whereIn('type', ['work_category', 'work_specialty', 'skill', 'tool', 'certification'])
|
||||
->where('is_active', true)
|
||||
@@ -142,6 +148,7 @@ class ProviderProfileController extends Controller
|
||||
'profile' => $provider->load(
|
||||
'user',
|
||||
'externalImports.attachments',
|
||||
'externalImports.workHistoryEntries',
|
||||
'taxonomyTerms',
|
||||
'attachments',
|
||||
'ratings.user',
|
||||
|
||||
Reference in New Issue
Block a user