@extends('layouts.restaurant') @section('title', 'Printer Settings') @section('styles') @endsection @section('content')
Total Printers

{{ $printers->count() }}

Active Printers

{{ $printers->where('is_active', true)->count() }}

Default Printer

{{ $printers->where('is_default', true)->count() }}

Network Printers

{{ $printers->where('printer_type', 'network')->count() }}

@if(session('success')) @endif @if(session('error')) @endif
@forelse($printers as $printer)
@if($printer->is_active) Active @else Inactive @endif @if($printer->is_default) Default @endif
@if($printer->printer_type == 'network') @elseif($printer->printer_type == 'bluetooth') @else @endif
{{ $printer->printer_name }}

{{ ucfirst($printer->printer_type) }} Printer | {{ $printer->paper_size }}mm

@if($printer->printer_type == 'network')
IP Address: {{ $printer->ip_address }}:{{ $printer->port }}
@elseif($printer->printer_type == 'bluetooth')
Bluetooth MAC: {{ $printer->bluetooth_mac ?? 'Not set' }}
@elseif($printer->printer_type == 'usb')
USB Path: {{ $printer->usb_path ?? '/dev/usb/lp0' }}
@endif
Added: {{ $printer->created_at->format('d M Y') }}
@if($printer->is_default)
Default Printer for KOT & Invoice
@elseif(!$printer->is_default && $printers->where('is_default', true)->count() == 0)
@endif
@empty
No Printers Configured

Add a printer to print KOT (Kitchen Order Tickets) and invoices

Add Manually
@endforelse
Printer Setup Guide
Network Printer (WiFi/Ethernet)
Connect via IP address (e.g., 192.168.1.100:9100)
Bluetooth Printer
Pair via Bluetooth and enter MAC address
USB Printer
Connected directly via USB port

Tip: Use the "Discover Printers" button to automatically find printers on your network
Note: Make sure your printer is powered on and connected before testing
@endsection @section('scripts') @endsection