@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', }; }; @endphp @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

Company-side work settles operational invoices and card spend that hits company policy. Earnings-side work covers mandate invoices, personal reimbursements for out-of-pocket spend outside company funds, and refund filing back to your mandate balance.

@if(\App\Support\WorkspaceNavigation::userMayConfigurePlatform($user ?? null))

Control Panel · directives & notifications — publish processing updates and instructions; operators see them here and receive in-app notices. Control Panel · create invoices & view pipeline totals — posts to this queue (earnings templates debit mandate when paid; optional line items must sum to invoice amount).

@endif @include('partials.stripe-powered-financial-rail', ['class' => 'mt-3 max-w-xl'])
@if (session('status') && ! $suppressInlineFlashForLedgerSim)

{{ session('status') }}

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

{{ $err }}

@endforeach
@endif @include('partials.task-queue-directives-banner')
@include('partials.tasks-control-panel-rail')

Company lane

Review operational payables, approve them for treasury, and clear card authorizations that need company oversight.

@forelse ($company_tasks as $task)
{{ $task['badge'] }}

{{ $task['title'] }}

{{ $task['summary'] }}

Status: {{ $task['status'] }}

${{ number_format((float) ($task['amount_usd'] ?? 0), 2) }}

@include('partials.task-queue-actions', ['task' => $task, 'earnings_invoice_restriction_message' => $earnings_invoice_restriction_message ?? null])
@empty

No company tasks in queue. When operational invoices or card reviews appear, they will list here.

@endforelse

Earnings & personal reimbursement lane

Pay earnings-domain invoices from mandate balance, approve reimbursement claims for out-of-pocket spend, and file new refund requests when you used personal funds outside the company rail.

@if (! empty($earnings_invoice_restriction_message))

{{ $earnings_invoice_restriction_message }}

@endif
@forelse ($earnings_tasks as $task)
{{ $task['badge'] }}

{{ $task['title'] }}

{{ $task['summary'] }}

Status: {{ $task['status'] }}

@if (! empty($task['needs_reviewer']))

A reviewer with reimbursement approval rights must approve this claim before funds move.

@endif

${{ number_format((float) ($task['amount_usd'] ?? 0), 2) }}

@include('partials.task-queue-actions', ['task' => $task, 'earnings_invoice_restriction_message' => $earnings_invoice_restriction_message ?? null])
@empty

No earnings or reimbursement tasks right now.

@endforelse
@if (count($reimbursement_accounts) >= 2)

File reimbursement (personal / out-of-rail spend)

Use this when you paid with personal funds or outside the company treasury path. Approved claims reimburse into the destination account you select (subject to policy and regional access).

@csrf
Earnings settlement history @if(\App\Support\WorkspaceNavigation::userMayConfigurePlatform($user)) Control Panel · outbound & holds Control Panel · mandate & invoice flags @endif
@endif
@include('partials.task-queue-dialog') @include('partials.task-queue-ledger-simulation-overlay')
@include('partials.workspace-lg-only-wrap-end')