<?php

return [
    'title'        => 'Terminals',
    'sub'          => 'Checkout stations for this store and their hardware setup.',
    'store_badge'  => 'Store',
    '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_none'        => 'No store selected',
        'store_help'        => 'New terminals belong to the active store. Switch stores from the store picker in the top bar.',
        '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)',
        'basics'            => 'Basics',
        'basics_sub'        => 'Name this station and where it belongs.',
        'delete_confirm'    => 'Past sales and shifts keep their history but lose the terminal label. This cannot be undone.',
    ],

    'hw' => [
        'title'          => 'Hardware',
        'sub'            => 'Receipt printer, paper and cash drawer for this till.',
        '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.',
    ],

    'cfd' => [
        'title'                => 'Customer display',
        'sub'                  => 'A second screen that mirrors the cart for the shopper.',
        'enabled'              => 'Enable a customer-facing display',
        'enabled_help'         => 'Show a second screen turned toward the shopper that mirrors the cart as you ring up. Open it from the cashier’s ⋮ menu, then drag it to the second monitor.',
        'transport'               => 'Where is the display?',
        'transport_same'          => 'Second monitor on this machine',
        'transport_separate'      => 'A separate device (tablet)',
        'transport_same_help'     => 'A second screen plugged into the same computer as the till. Works instantly and fully offline — nothing goes over the network.',
        'transport_separate_help' => 'A standalone tablet on the same network. Open this store’s /cashier/display on it (signed in, bound to this terminal); it updates every second or two by polling.',
        'welcome'              => 'Welcome message',
        'welcome_placeholder'  => 'Welcome to :store',
        'welcome_help'         => 'Shown on the display when no sale is in progress. Leave blank to use the default greeting.',
        'thankyou'             => 'Thank-you message',
        'thankyou_placeholder' => 'Thank you!',
        'attract'              => 'Idle slideshow',
        'attract_help'         => 'Promo images shown on a loop while no sale is in progress. JPG, PNG, or WebP up to 2 MB each; up to 12 images.',
        'attract_remove'       => 'Remove image',
        'attract_seconds'      => 'Seconds per image',
        'attract_seconds_help' => 'How long each image stays on screen before the next (3–30 seconds).',
    ],

    'kiosk' => [
        'title'                 => 'Self-ordering kiosk',
        'sub'                   => 'Turn this station into a customer-operated ordering kiosk.',
        'is_kiosk'              => 'Use this station as a self-ordering kiosk',
        'is_kiosk_help'         => 'Turns this terminal into a customer-operated kiosk instead of a staff till. The shopper browses and orders it themselves; no cashier drives the screen.',
        'enabled'               => 'Enable the kiosk',
        'enabled_help'          => 'Open it from a signed-in session bound to this terminal, then hand the screen to the customer.',
        'mode'                  => 'What can the customer do?',
        'mode_checkout'         => 'Order and pay at the kiosk',
        'mode_order'            => 'Order here, pay at the counter',
        'mode_both'             => 'Let the customer choose (pay at kiosk or counter)',
        'mode_checkout_help'    => 'The customer builds a cart and pays on the spot (cashless). The sale is finished at the kiosk.',
        'mode_order_help'       => 'The customer places an order that appears in the staff queue; payment is taken at the counter when they collect.',
        'mode_both_help'        => 'At checkout the kiosk asks the customer whether to pay now (cashless) or pay at the counter, then follows that path.',
        'welcome'               => 'Welcome message',
        'welcome_placeholder'   => 'Order in a few taps',
        'thankyou'              => 'Thank-you message',
        'thankyou_placeholder'  => 'Thank you!',
        'idle'                  => 'Reset after inactivity (seconds)',
        'idle_help'             => 'If the customer walks away, the cart is discarded and the kiosk returns to the welcome screen (20–300 seconds).',
        'open'                  => 'Open kiosk',
        'customer'              => 'Ask for customer details?',
        'customer_off'          => 'Don’t ask',
        'customer_optional'     => 'Optional',
        'customer_required'     => 'Required before ordering',
        'customer_help'         => 'Capture the shopper’s name + phone so staff can reach them about the order.',
        'allow_note'            => 'Let the customer add a note',
        'categories'            => 'Show only these categories',
        'categories_help'       => 'Tick the categories the kiosk may sell. Leave all unticked to show the whole catalog.',
        'payment_methods'        => 'Gateways for “Pay now”',
        'payment_methods_help'   => 'Tick the gateways this kiosk may charge through when the customer pays at the machine.',
        'payment_methods_all'    => 'Nothing ticked — the shopper picks from every configured gateway after scanning.',
        'payment_methods_single' => 'One gateway ticked — scanning the code goes straight to it, with no chooser step.',
        'payment_methods_none'   => 'No online payment gateway is set up yet. Configure one under Settings → Payments before the kiosk can take payment at the machine.',
        'upi_method'             => 'UPI “scan and pay” method',
        'upi_method_none'        => 'Don’t offer UPI at the kiosk',
        'upi_method_help'        => 'Shows a UPI QR for the cart total. A static UPI QR sends no confirmation back, so the kiosk only marks the payment as claimed — staff must find the transfer in their UPI app and settle the order at the counter. If you have a payment gateway, tick it above instead: gateway UPI is verified automatically and completes the sale. Only methods with a saved VPA appear here.',
        'upi_method_none_configured' => 'No payment method has a UPI ID (VPA) saved yet, so there is nothing for the kiosk to build a QR from.',
        'upi_method_configure'   => 'Add a UPI ID in Settings → Payments',
        'pickup_prefix'          => 'Pickup-code prefix',
        'pickup_prefix_help'     => 'Letters and digits, up to 4. Codes run daily per store — this kiosk will issue :example',
        'thankyou_seconds'       => 'Thank-you screen (seconds)',
        'thankyou_seconds_help'  => 'How long the pickup number and receipt QR stay on screen before the kiosk resets. Long enough for the shopper to note the number and scan the code.',
        'sound'                  => 'Play a sound when a product is added',
        'sound_help'             => 'A short confirmation tone each time the shopper taps a product. Turn it off for quiet showrooms.',
        'attract'               => 'Idle slideshow',
        'attract_remove'        => 'Remove image',
        'attract_help'          => 'Promo images shown on a loop on the welcome screen. JPG, PNG, or WebP up to 2 MB each; up to 12 images.',
        'attract_seconds'       => 'Seconds per image',
        'pin_required'          => 'Require a supervisor to exit kiosk mode',
        'pin_required_help'     => 'A manager must re-enter their email + password to leave the kiosk and reach the back office.',
    ],

    '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”.',
    ],
];
