@php($purchasingLinks=app(\App\Modules\Purchasing\WorkspaceNavigation::class)->links())
@if(config('purchasing_workspace.single_installation')===true)
@php($activeProfile=collect(config('purchasing_workspace.profiles',[]))->firstWhere('user_id',auth()->id()))
Compras · {{ $activeProfile['label'] ?? 'Função autorizada' }} · Entrada de Compras / trocar função · {{ \Illuminate\Support\Facades\DB::table('companies')->where('id',app(\App\Shared\Context\CompanyContext::class)->identifiers()['company_id'])->value('name') }} · {{ \Illuminate\Support\Facades\DB::table('units')->where('id',app(\App\Shared\Context\CompanyContext::class)->unitId())->value('name') }}
@endif
@if(count($purchasingLinks))
@endif