<?php

return [
    'title'        => 'Categories',
    'sub'          => 'Group products to keep checkout fast, reports clean, and tax accurate.',
    'crumb_parent' => 'Catalog',

    'actions' => [
        'new'             => 'New category',
        'save'            => 'Save changes',
        'create'          => 'Create category',
        'discard'         => 'Discard',
        'delete'          => 'Delete',
        'delete_confirm'  => 'Delete this category? Any products in it will be left uncategorised. This cannot be undone.',
        'close'           => 'Close',
        'export'          => 'Export',
        'export_csv'      => 'Download CSV',
        'export_xlsx'     => 'Download Excel (XLSX)',
    ],

    'list' => [
        'title'        => 'All categories',
        'drag_hint'    => 'Drag the handle to reorder',
        'products'     => 'products',
        'under'        => 'Under :parent',
        'archived'     => 'Archived',
        'empty_title'  => 'No categories yet',
        'empty_sub'    => 'Click “New category” to add the first one.',
    ],

    'row' => [
        'toggle_active' => 'Toggle active',
    ],

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

    'view' => [
        'aria'  => 'View mode',
        'table' => 'Table',
        'tree'  => 'Tree',
    ],

    'drawer' => [
        'edit_title'    => 'Edit category',
        'new_title'     => 'New category',
        'edit_id'       => 'ID',
        'edit_updated'  => 'updated',
        'new_sub'       => 'Group products to keep checkout fast, reports clean, and tax accurate.',
        'name'          => 'Display name',
        'name_placeholder' => 'e.g. Produce',
        'parent'          => 'Parent category',
        'parent_none'     => '— None (top level)',
        'color'           => 'Icon color',
        'tax_group'       => 'Tax rule',
        'tax_group_none'  => '— Use product tax',
        'is_active'     => 'Active (visible in product picker)',
        'stats_products' => 'Products',
        'stats_revenue'  => 'Revenue · 30d',
    ],

    'errors' => [
        'title'                 => 'Please review the highlighted fields',
        'parent_self'           => 'A category cannot be its own parent.',
        'parent_cycle'          => 'Cannot move a category under one of its own descendants.',
        'default_protected'     => '“:name” is the default category and cannot be deleted.',
        'replacement_is_self'   => 'Cannot move products into the same category being deleted.',
        'replacement_not_found' => 'The replacement category could not be found.',
    ],

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

    'flash' => [
        'created'           => '”:name” created successfully.',
        'updated'           => '”:name” saved successfully.',
        'deleted'           => '”:name” deleted.',
        'deleted_with_move' => '”:name” deleted — :count product(s) moved to “:target”.',
    ],

    'delete_dialog' => [
        'title'           => 'Delete “:name”?',
        'no_products'     => 'This category has no products. Deleting it is safe.',
        'has_products'    => ':count product(s) are linked to this category. Pick where to move them.',
        'move_label'      => 'Move products to…',
        'move_placeholder' => 'Search categories',
        'default_hint'    => 'Defaults to “:name” if you leave this blank.',
        'confirm'         => 'Delete category',
        'cancel'          => 'Cancel',
    ],
];
