@extends('layouts.app') @section('title', 'Print Job Monitor') @section('content')

🖨️ Print Job Monitor

Print Agent: {{ $agentStatus['label'] }} @if ($agentStatus['class'] !== 'success')
This is almost always the actual cause of "printing isn't working" — the web app can only queue a print job (writing bytes to the database); a separate program (the print agent, see /print-agent in your project files) has to actually be running on a PC/laptop on the same network as your printer, polling this server, and forwarding the job to the printer over TCP. If it says "Never connected" or "Offline", start with: is node agent.js actually running right now, and does its config.json have the correct server URL and token?
@endif
Pending
{{ $counts['pending'] }}
Failed
{{ $counts['failed'] }}
Test Print by Printer

Sends a short ticket with no order data — the fastest way to check one printer's network path in isolation.

@foreach ($printers as $p)
@csrf
@endforeach
Recent Print Jobs
@forelse ($jobs as $job) @empty @endforelse
TimeTypePrinterOrderStatusError
{{ $job->created_at->format('d M h:i:s A') }} {{ strtoupper($job->type) }} {{ $job->printer->name ?? '—' }} {{ $job->order->order_number ?? '—' }} {{ ucfirst($job->status) }} {{ $job->last_error }} @if ($job->status === 'failed')
@csrf
@endif
@csrf @method('DELETE')
No print jobs yet.
@endsection