@php $design = [ 'Active Plan' => ['plans', 'blue', 'Current package'], 'Total Work Limit' => ['tasks', 'purple', 'Monthly work'], 'Completed Work' => ['downloads', 'green', 'Delivered files'], 'Remaining Work' => ['tasks', 'orange', 'Open work'], 'Pending Requests' => ['requests', 'blue', 'Admin review'], 'Pending Payments' => ['payments', 'orange', 'Proof review'], 'Downloads' => ['downloads', 'blue', 'Ready files'], 'Open Orders' => ['requests', 'blue', 'One-time service jobs'], ]; $oneTimeClient = auth()->user()->client_type === 'one_time'; @endphp
@foreach ($stats as $label => $value) @php [$icon, $tone, $detail] = $design[$label] ?? ['dashboard', 'blue', 'Portal metric']; @endphp
{{ $label }}{{ $value }}{{ $detail }}
@endforeach @if(! $oneTimeClient)
Payment Status{{ $stats['Pending Payments'] ? 'Review' : 'Clear' }}Manual approval
@endif
@if($oneTimeClient)

Service Orders

One-time project delivery queue

New Order

{{ $stats['Open Orders'] ?? 0 }} open orders

No monthly plan is required for this portal.

@else

My Plan

Usage and delivery balance

Open

{{ $subscription->plan->name ?? 'No active plan' }}

Usage: {{ $subscription->usage_count ?? 0 }} work items

@endif

Recent Work

Status from your delivery queue

View All
@include('partials.task-table', ['tasks' => $tasks])