@php $ledgerSimulationStatuses = [ 'Invoice approved.', 'Invoice paid from mandate earnings.', 'Payment request submitted. Company treasury will process settlement.', 'Reimbursement claim approved and posted.', ]; $suppressInlineFlashForLedgerSim = session('status') && in_array(session('status'), $ledgerSimulationStatuses, true); $severityRing = static function (string $sev): string { return match ($sev) { 'danger' => 'ring-rose-200 border-rose-100', 'warning' => 'ring-amber-200 border-amber-100', default => 'ring-slate-100 border-[#ECECEC]', }; }; $severityBadge = static function (string $sev): string { return match ($sev) { 'danger' => 'bg-rose-50 text-rose-900 border-rose-200', 'warning' => 'bg-amber-50 text-amber-950 border-amber-200', default => 'bg-sky-50 text-sky-900 border-sky-200', }; }; $taskQueueInitialTab = $taskQueueInitialTab ?? 'company'; if (! in_array($taskQueueInitialTab, ['company', 'earnings'], true)) { $taskQueueInitialTab = 'company'; } @endphp @include('partials.html-root-open') @include('partials.head-meta', ['pageTitle' => 'Task queue']) @include('partials.ledger-settlement-simulation-script') @include('partials.task-queue-workspace-script') @include('partials.desktop-required-notice') @include('partials.workspace-lg-only-wrap-start') @include('partials.activity-drawer') {{-- Outer attribute must be single-quoted: @json() emits double quotes and breaks x-data="..." --}}
@include('partials.workspace-shell-operator-chrome')
@include('partials.control-preview-shell-banner')

Task queue

Settle company operational work and mandate earnings in two lanes below.

@include('partials.task-queue-workspace-guide')
@include('partials.task-queue-directives-banner') @if (session('status') && ! $suppressInlineFlashForLedgerSim)

{{ session('status') }}

@endif @if ($errors->any())
@foreach ($errors->all() as $err)

{{ $err }}

@endforeach
@endif @if (($focusInvoiceId ?? null) && ($focusInvoiceTaskFound ?? null) === false)

Invoice #{{ $focusInvoiceId }} is not currently actionable in Task Queue.

Open in invoice queue
@endif @if (($focusTreasuryCostId ?? null) && ($focusTreasuryCostTaskFound ?? null) === false)

Treasury cost #{{ $focusTreasuryCostId }} is no longer pending approval or was already cleared.

Back to company tasks
@endif @include('partials.task-queue-dialog') @include('partials.task-queue-ledger-simulation-overlay')
@include('partials.workspace-lg-only-wrap-end')