@extends('layouts.app') @section('title','Search') @section('content')

Organization units

{{ $units->count() }} matches
@php($vieworgunits=\App\Support\ListView::rows($units,'org_units'))@forelse($vieworgunits as $u){{ $u->at(now()->toDateString())?->name ?? 'Scheduled' }}{{ $u->code }}@empty

No matching organization units.

@endforelse

Positions

{{ $positions->count() }} matches
@php($viewpositions=\App\Support\ListView::rows($positions,'positions'))@forelse($viewpositions as $p){{ $p->at(now()->toDateString())?->title ?? 'Scheduled' }}{{ $p->code }}@empty

No matching positions.

@endforelse
@if($people instanceof \Illuminate\Contracts\Pagination\LengthAwarePaginator)

Employees

@php($viewemployees=\App\Support\ListView::rows($people,'employees'))@foreach($viewemployees as $person){{ $person->full_name }}{{ $person->employee_number }}@endforeach
@endif @if($documents instanceof \Illuminate\Contracts\Pagination\LengthAwarePaginator)

Documents

@php($viewdocuments=\App\Support\ListView::rows($documents,'documents'))@foreach($viewdocuments as $doc){{ $doc->title }}{{ $doc->type?->name }}@endforeach
@endif @foreach([['Assets',$equipment,'assets','name','assets'],['Fleet',$fleet,'assets','plate','vehicles'],['Vacancies',$vacancies,'recruitment','title','vacancies']] as [$label,$matches,$path,$field,$listKey])

{{ $label }}

{{ $matches->count() }} matches
@php($matchRows=\App\Support\ListView::rows($matches,$listKey))@forelse($matchRows as $match){{ $match->$field }}@empty

No accessible matches.

@endforelse
@endforeach @endsection