@extends('layouts.app') @section('title', 'Operations Command Center') @section('content') @php $statusPalette = [ 'draft' => '#94a3b8', 'new' => '#2563eb', 'in_progress' => '#2563eb', 'document_check' => '#f97316', 'submitted' => '#10b981', 'approved' => '#16a34a', 'completed' => '#16a34a', 'returned' => '#f59e0b', 'rejected' => '#ef4444', 'cancelled' => '#64748b', 'payment_pending' => '#8b5cf6', ]; @endphp

Live business command center

Welcome back, {{ auth()->user()->name }}

Real-time operations across {{ $branches->count() }} {{ Str::plural('branch', $branches->count()) }} of {{ $tenant->company_name }}.

@if(auth()->user()->hasPermission('customers.create')) + Customer @endif @if(auth()->user()->hasPermission('applications.create')) + New Application @endif
@if(auth()->user()->hasPermission('renewals.view'))
@foreach(['customer'=>'Customer documents','company'=>'Company documents','corporate_employee'=>'Corporate employee docs','internal_employee'=>'Internal employee docs'] as $entity=>$label) EX

{{ $label }}

{{ number_format($documentExpiryMetrics[$entity]) }}

Expired or due within 90 days

@endforeach
@endif
ALive

Today's Applications

{{ number_format($todayApplications) }}

Created since midnight

Completed

Completed Today

{{ number_format($completedToday) }}

Finalised applications

AEDCollected

Revenue Today

AED {{ number_format((float) $todayRevenue, 2) }}

Successful payments

@if($slaRisk){{ $slaRisk }} SLA risk@endif

Pending Applications

{{ number_format($pendingApplications) }}

Across active workflows

R30 days

Renewals Due

{{ number_format($renewalsDue) }}

Open pipeline →
@if(auth()->user()->hasPermission('applications.view')) D

Pending Documents

{{ number_format($pendingDocuments) }}

Mandatory items awaiting verification

S

Submitted

{{ number_format($submittedApplications) }}

With government authorities

R

Returned Applications

{{ number_format($returnedApplications) }}

Correction and resubmission required

@endif @if(auth()->user()->hasPermission('customers.view')) C

Customers Added

{{ number_format($customersAddedToday) }}

Created today

@endif @if(auth()->user()->hasPermission('approvals.view')) A

Pending Approvals

{{ number_format($pendingApprovalCount) }}

Controlled decisions awaiting action

@endif
@if(auth()->user()->hasPermission('payments.view'))
AED

Today’s Collection

AED {{ number_format((float)$todayRevenue,2) }}

Successful payments

SR

Service Revenue

AED {{ number_format((float)$serviceRevenueToday,2) }}

Company income only

GF

Government Fees

AED {{ number_format((float)$governmentFeesToday,2) }}

Pass-through / clearing

VAT

VAT

AED {{ number_format((float)$vatToday,2) }}

Tax liability tracked separately

CR

Corporate Receivables

AED {{ number_format((float)$pendingCorporateReceivables,2) }}

Open corporate balances

@endif @if(auth()->user()->hasPermission('attendance.view'))
P

Employees Present

{{ $employeesPresent }}

Today’s attendance

A

Employees Absent

{{ $employeesAbsent }}

Explicit absence records

L

Employees Late

{{ $employeesLate }}

Beyond shift grace period

OT

Overtime Today

{{ intdiv($employeeOvertimeMinutes,60) }}h {{ $employeeOvertimeMinutes%60 }}m

Calculated from approved records

EX

Employee Documents

{{ $employeeDocumentsDue }}

Expired or due within 90 days

@endif

Applications Trend

Created versus completed during the last seven days

CreatedCompleted
@foreach($weeklyTrend as $day)
{{ $day['label'] }}
@endforeach

Top Services

Application volume

View all
@forelse($topServices as $service)
{{ $service['name'] }}{{ $service['total'] }}
@empty
SNo service activity yet

Published services will appear here after applications are created.

@endforelse

Renewals Due

Next 30 days

View all

Revenue Overview

AED collected over seven days

AED {{ number_format($weeklyTrend->sum('revenue'), 2) }}
@foreach($weeklyTrend as $day)
{{ $day['revenue'] > 0 ? number_format($day['revenue'] / 1000, 1).'k' : '0' }}
{{ $day['label'] }}
@endforeach
Outstanding receivablesAED {{ number_format((float) $outstandingReceivables, 2) }}

Application Status

Current workload mix

{{ number_format($statusCounts->sum()) }} total
@forelse($statusCounts->sortDesc()->take(6) as $status => $count)
{{ str($status)->replace('_', ' ')->title() }}
{{ $count }} ({{ round(($count / $statusTotal) * 100) }}%)
@empty
Your operation is ready

Status analytics will populate with live applications.

@endforelse
@if(auth()->user()->hasPermission('employees.view')) @endif @if(auth()->user()->hasPermission('approvals.view')) @endif @if(auth()->user()->hasPermission('payments.view')) @endif

Quick Actions

Start common typing-center workflows

{{ $employeeCount }} active staff · {{ $userCount }} ERP users
@if(auth()->user()->hasPermission('customers.create'))CAdd Customer@endif @if(auth()->user()->hasPermission('applications.create'))AApplication@endif @if(auth()->user()->hasPermission('documents.upload'))DDocuments@endif @if(auth()->user()->hasPermission('payments.collect'))AEDCollect Payment@endif @if(auth()->user()->hasPermission('renewals.view'))RRenewals@endif @if(auth()->user()->hasPermission('customers.view'))COCorporate@endif @if(auth()->user()->hasPermission('reports.view'))Finance@endif @if(auth()->user()->hasPermission('settings.view'))Settings@endif
@endsection