@extends('layouts.app') @section('title', 'Executive Dashboard') @section('header_title', 'Dashboard') @push('styles') @endpush @section('content')

Total Print Jobs

{{ number_format($totalJobs ?? 0) }}

Total Pages

{{ number_format($totalPages ?? 0) }}

Color Pages

{{ number_format($totalColor ?? 0) }}

B&W Pages

{{ number_format($totalBw ?? 0) }}

Estimated Cost

Rs. {{ number_format($totalCost ?? 0, 2) }}

A4 Pages Printed

{{ number_format($totalA4Pages ?? 0) }}

A4 Est. Cost

Rs. {{ number_format($totalA4Cost ?? 0, 2) }}

A3 Pages Printed

{{ number_format($totalA3Pages ?? 0) }}

A3 Est. Cost

Rs. {{ number_format($totalA3Cost ?? 0, 2) }}

Color vs B&W

Distribution

Top 10 Consumers

Cost Drivers
@hasanyrole('Super Admin|Executive') @else
{{ auth()->user()->location->name ?? 'Unassigned' }}
@endhasanyrole
@if(request()->anyFilled(['search', 'location_id', 'printer_id', 'start_date', 'end_date'])) @endif

Live Print Audit Log

@foreach ($printJobs ?? [] as $job) @endforeach
Timestamp User Desktop & IP Document Pages Size Color Mode Printer, IP & Serial Branch / Sub-Location
{{ $job->printed_at ? $job->printed_at->format('Y-m-d H:i') : 'N/A' }} {{ $job->username }}
{{ $job->computer_name }}
@if($job->public_ip)
{{ $job->public_ip }}
@endif
{{ $job->document_name }} {{ $job->pages }} {{ strtoupper($job->paper_size ?? 'A4') }} @php $actualMode = strtolower($job->color_mode ?? 'unknown'); if ($job->printer && $job->printer->printer_type === 'bw') { $actualMode = 'monochrome'; } $isColor = in_array($actualMode, ['color', 'colour']); @endphp @if($isColor) Color @else B&W @endif
{{ $job->printer ? $job->printer->printer_name : $job->printer_name }}
@php $printerIp = $job->printer_ip ?? ($job->printer->ip_address ?? null); @endphp @if($printerIp) IP: {{ $printerIp }} @endif @if($job->printer && $job->printer->serial_number) SN: {{ $job->printer->serial_number }} @elseif($job->snmp_printer_id) SN: {{ $job->snmp_printer_id }} @else No Serial @endif
{{ $job->printer->location->name ?? ($job->location_name ?? 'N/A') }}
{{ $job->printer->subLocation->name ?? 'N/A' }}
@endsection @push('scripts') @endpush