<?php

return [
    'title'        => 'Terminals',
    'sub'          => 'Manage the checkout stations in each store and their hardware setup.',
    'crumb_parent' => 'System',

    'actions' => [
        'new'         => 'New terminal',
        'save'        => 'Save changes',
        'create'      => 'Create terminal',
        'discard'     => 'Discard',
        'delete'      => 'Delete',
        'export'      => 'Export',
        'export_csv'  => 'Download CSV',
        'export_xlsx' => 'Download Excel (XLSX)',
    ],

    'actions_extra' => [
        'saving'   => 'Saving…',
        'creating' => 'Creating…',
    ],

    'list' => [
        'title'       => 'All terminals',
        'empty_title' => 'No terminals yet',
        'empty_sub'   => 'Add a terminal for each till or workstation so receipts, drawers, and scanners can be configured per station.',
    ],

    'row' => [
        'toggle_active' => 'Toggle active',
        'use_here'      => 'Use on this device',
        'this_device'   => 'This device',
        'stop_using'    => 'Stop using on this device',
    ],

    'select' => [
        'flash'    => '“:name” is now the terminal for this device.',
        'cleared'  => 'This device is no longer bound to a terminal.',
        'inactive' => 'That terminal is inactive — activate it first.',
    ],

    'editor' => [
        'empty_title' => 'Select a terminal',
        'empty_sub'   => 'Pick a row to view its details, or click “New terminal” to add one.',
    ],

    'drawer' => [
        'edit_title'        => 'Edit terminal',
        'new_title'         => 'New terminal',
        'edit_id'           => 'ID',
        'edit_updated'      => 'updated',
        'new_sub'           => 'A till or workstation. Configure its receipt printer and cash drawer below.',
        'store'             => 'Store',
        'store_placeholder' => 'Select a store',
        'name'              => 'Display name',
        'name_placeholder'  => 'e.g. Front counter',
        'code'              => 'Code',
        'code_placeholder'  => 'e.g. POS-1',
        'code_help'         => 'A short unique code within the store. Leave blank to generate one automatically.',
        'is_active'         => 'Active (available for sign-in and checkout)',
    ],

    'hw' => [
        'title'          => 'Hardware',
        'mode'           => 'Receipt printer',
        'mode_browser'   => 'Browser print (any printer, via the print dialog)',
        'mode_webusb'    => 'Thermal printer (WebUSB — direct, no dialog)',
        'mode_network'   => 'Network printer',
        'mode_none'      => 'No receipt printer',
        'mode_help'      => 'Browser print works everywhere. Choose Thermal (WebUSB) to print directly to an ESC/POS printer and kick the cash drawer.',
        'pair'           => 'Paired printer',
        'pair_btn'       => 'Pair printer…',
        'pair_help'      => 'Pick your thermal printer in the browser prompt. Pairing is remembered for this browser; pair again on each till machine.',
        'not_paired'     => 'No printer paired yet',
        'paper'          => 'Paper width',
        'cut'            => 'Auto-cut paper after printing',
        'drawer'         => 'Open cash drawer on cash payments',
        'drawer_pin'     => 'Drawer kick pin',
        'drawer_pin_2'   => 'Pin 2 (most common)',
        'drawer_pin_5'   => 'Pin 5',
        'drawer_pin_help'=> 'The drawer is wired to the printer’s RJ-11 port. Pin 2 suits almost every drawer; try pin 5 if it doesn’t open.',
    ],

    'errors' => [
        'code_format' => 'The code may only contain letters, numbers, dots, dashes, and underscores.',
        'code_taken'  => 'Another terminal in this store already uses that code.',
    ],

    'flash' => [
        'created' => 'Created “:name”.',
        'updated' => 'Updated “:name”.',
        'deleted' => 'Deleted “:name”.',
    ],
];
