<?php

return [
    'title'        => 'Products',
    'sub'          => 'Catalog of everything you sell — name it once, ring it everywhere.',
    'crumb_parent' => 'Catalog',

    'actions' => [
        'new'             => 'New product',
        'save'            => 'Save changes',
        'create'          => 'Create product',
        'discard'         => 'Discard',
        'delete'          => 'Delete',
        'delete_confirm'  => 'Delete this product? This cannot be undone. If the product has been sold the delete will be blocked.',
        'cancel'          => 'Cancel',
        'back_to_list'    => 'Back to products',
        'export'          => 'Export',
        'export_csv'      => 'Download CSV',
        'export_xlsx'     => 'Download Excel (XLSX)',
        'import'          => 'Import',
        'import_coming_soon' => 'CSV import wizard — coming soon.',
        'add_variant'     => 'Add variant',
    ],

    'types' => [
        'simple'  => 'Simple — single SKU, single price',
        'variant' => 'Variant — multiple sizes / colors / packs',
        'kit'     => 'Kit — bundle of other products',
    ],

    'summary' => [
        'total'    => 'Total products',
        'active'   => 'Active',
        'featured' => 'Featured',
    ],

    'list' => [
        'title'              => 'All products (:count)',
        'header_sub'         => ':count items in catalog',
        'empty_title'        => 'No products yet',
        'empty_sub'          => 'Click “New product” to add the first one.',
        'search_placeholder' => 'Search by name, SKU, or barcode',
        'cat_all'            => 'Category: All',
        'filter_cat_all'      => 'All categories',
        'filter_type_all'     => 'All types',
        'filter_status_all'   => 'All',
        'filter_status_active'    => 'Active',
        'filter_status_inactive'  => 'Inactive',
        'filter_featured_all'     => 'All',
        'filter_featured_only'    => 'Featured only',
        'active_only'        => 'Active only',
        'featured_only'      => 'Featured',
        'of'                 => 'of',
        'view_label'         => 'View mode',
        'view_table'         => 'Table',
        'view_grid'          => 'Grid',
        'cost_short'         => 'cost',
        'featured'           => 'Featured',
        'col_image'          => '',
        'col_name'           => 'Product',
        'col_sku'            => 'SKU',
        'col_category'       => 'Category',
        'col_type'           => 'Type',
        'col_brand'          => 'Brand',
        'col_unit'           => 'Unit',
        'col_price'          => 'Price',
        'col_cost'           => 'Cost',
        'col_margin'         => 'Margin',
        'col_status'         => 'Status',
        'col_actions'        => '',
        'toggle_active'      => 'Toggle active',
        'toggle_featured'    => 'Toggle featured',
        'tip_active_on'      => 'Active — click to deactivate',
        'tip_active_off'     => 'Inactive — click to activate',
        'tip_featured_on'    => 'Featured — click to remove',
        'tip_featured_off'   => 'Not featured — click to feature',
        'refresh'            => 'Refresh list',
        'no_category'        => '—',
        'no_brand'           => '—',
        'inactive'           => 'Inactive',
        'active'             => 'Active',
        // Short product-type labels for the list/grid type badge.
        'type_simple'        => 'Simple',
        'type_variant'       => 'Variant',
        'type_kit'           => 'Kit',
    ],

    'sections' => [
        'basics'           => 'Basics',
        'basics_sub'       => 'Identity that travels with this product everywhere.',
        'pricing'          => 'Price & cost',
        'pricing_sub'      => 'What it costs you, what you sell it for.',
        'pricing_variant_note' => 'This is a variant product — pricing is set per variant. Each child SKU carries its own selling price, cost, and per-store overrides.',
        'inventory'        => 'Inventory settings',
        'inventory_sub'    => 'How this product is counted and replenished.',
        'compliance'       => 'Compliance',
        'compliance_sub'   => 'Tax codes, drug schedules, manufacturer details.',
        'image'            => 'Product image',
        'image_sub'        => 'Recommended 800×600 · JPG, PNG, GIF, or WebP · up to 2 MB.',
        'status'           => 'Status',
        'tax'              => 'Tax',
        'tax_sub'          => 'How this product is taxed at checkout.',
        'reporting'        => 'Reporting',
        'reporting_sub'    => 'Sales numbers — appear once sales are recorded.',
        'variants'         => 'Variants',
        'variants_sub'     => 'Child SKUs that share the parent product but differ by size, color, pack, etc. Each variant has its own SKU and stock.',
        'kit'              => 'Kit components',
        'kit_sub'          => 'Other products that ship together as this bundle. Selling the kit draws stock from each component.',
        'store_prices'     => 'Per-store pricing',
        'store_prices_sub' => 'Override the default price / cost / MRP at specific stores. Each blank field cascades to the value above.',
    ],

    'variants' => [
        'empty_title'      => 'No variants yet',
        'empty_sub'        => 'Add an attribute with at least one value above — the variant matrix generates automatically.',
        'remove'           => 'Remove',

        // Attribute builder
        'attributes_title'        => 'Attributes',
        'attributes_sub'          => 'Define what varies (Color, Size, Pack) and list each value. The variant matrix below is every combination.',
        'add_attribute'           => 'Add attribute',
        'attr_empty_title'        => 'No attributes yet',
        'attr_empty_sub'          => 'Add an attribute like “Color” or “Size”, then list its values to generate variants.',
        'attr_name'               => 'Attribute',
        'attr_name_placeholder'   => 'e.g. Color',
        'attr_values'             => 'Values',
        'attr_value_placeholder'  => 'Type a value, press Enter',
        'store_overrides'         => 'Per-store price overrides',
        'collapse_all'            => 'Collapse all',
        'expand_all'              => 'Expand all',
        'delete_title'            => 'Delete this variant?',
        'delete_confirm'          => 'removes this combination from the matrix. It won\'t be recreated when you edit attributes. If it\'s been sold, the delete is blocked when you save.',
        'attr_delete_title'       => 'Delete this attribute?',
        'attr_delete_confirm'     => 'Removing the attribute regenerates the variant matrix and drops the variants that depended on it. Variants already sold are kept until you save.',

        'fields' => [
            'label'              => 'Variant',
            'sku'                => 'SKU',
            'sku_placeholder'    => 'e.g. TSHIRT-RED-S',
            'barcode'            => 'Barcode',
            'barcode_placeholder'=> 'Scan or enter',
            'selling_price'      => 'Selling price',
            'cost_price'         => 'Cost price',
            'mrp'                => 'MRP',
            'is_active'          => 'Active',
        ],
    ],

    'kit' => [
        'empty_title'    => 'No components yet',
        'empty_sub'      => 'A kit bundles two or more products into one SKU. Add the first component to get started.',
        'add_component'  => 'Add component',
        'remove'         => 'Remove',
        'delete_title'   => 'Remove this component?',
        'delete_confirm' => 'This component will be taken out of the kit. Nothing is deleted until you save the product.',
        'fields' => [
            'component'              => 'Component product',
            'component_placeholder'  => 'Pick a product…',
            'variant'                => 'Variant (optional)',
            'variant_any'            => 'Any / parent SKU',
            'quantity'               => 'Quantity',
        ],
    ],

    'store_prices' => [
        'title'       => 'Per-store overrides',
        'sub'         => 'Charge different prices at specific stores. Leave any field blank to inherit the default above.',
        'store'       => 'Store',
        // Short column headers for the per-variant override grid.
        'cost'        => 'Cost',
        'selling'     => 'Selling',
        'mrp'         => 'MRP',
        'inherit_hint'=> 'Blank = inherit',
        'no_stores'   => 'No active stores yet — overrides become available once stores are configured.',
    ],

    'image' => [
        'title' => 'Product photo',
        'hint'  => 'Recommended 800×600 · JPG or PNG · up to 2 MB.',
    ],

    'tabs' => [
        'general'    => 'General',
        'pricing'    => 'Pricing & Tax',
        'variants'   => 'Variants',
        'kit'        => 'Kit',
        'inventory'  => 'Inventory',
        'compliance' => 'Compliance',
    ],

    'reporting' => [
        'sold_today'     => 'Sold today',
        'revenue_30d'    => 'Revenue · 30d',
        'placeholder'    => '—',
        'awaiting_sales' => 'Available once sales are recorded.',
    ],

    'fields' => [
        'type'              => 'Product type',
        'type_help'         => 'Simple = one SKU. Variant = parent SKU with several child SKUs (sizes / colors / packs). Switch carefully — changing away from Variant removes any existing variants on save.',
        'sku'               => 'SKU',
        'sku_placeholder'   => 'e.g. COKE-330ML',
        'barcode'           => 'Barcode',
        'barcode_placeholder' => 'Scan or enter',
        'name'              => 'Display name',
        'name_placeholder'  => 'e.g. Coca-Cola 330ml Can',
        'short_description' => 'Short description',
        'short_description_placeholder' => 'One-line summary shown on receipts',
        'description'       => 'Description',
        'description_placeholder' => 'Longer-form notes — visible inside the back office only',
        'category'          => 'Category',
        'category_none'     => '— None',
        'brand'             => 'Brand',
        'brand_none'        => '— None',
        'unit'              => 'Sold by (unit)',
        'tax_group'         => 'Tax rule',
        'tax_group_none'    => '— Use store default',
        'tax_group_help'    => 'Defaults to the selected category’s tax rule. Pick a different one to override per-product.',
        'is_tax_inclusive'  => 'Selling price already includes tax',

        'cost_price'    => 'Cost price',
        'selling_price' => 'Selling price',
        'mrp'           => 'MRP (max retail price)',
        'mrp_help'      => 'Optional. Some markets require printing MRP on the label.',
        'margin'        => 'Margin',
        'markup'        => 'Markup',
        'profit_per_unit' => 'Profit / unit',
        'markup_percent'      => 'Target markup %',
        'markup_percent_help' => 'When set + the company "auto-apply markup on receive" toggle is on, receiving this product at a new cost bumps its selling price to cost × (1 + markup/100). Leave blank to manage the selling price by hand.',

        'sold_by_weight'   => 'Sold by weight (scale integration)',
        'scale_plu'             => 'Scale PLU code',
        'scale_plu_placeholder' => 'e.g. 1234',
        'scale_plu_help'        => 'Item code embedded in weighing-scale barcodes. Configure the barcode format under Settings → Scale.',
        'track_stock'      => 'Track stock for this product',
        'track_batches'    => 'Track batches / lot numbers',
        'track_expiry'     => 'Track expiry dates',
        'reorder_level'        => 'Reorder at',
        'reorder_level_help'   => 'When on-hand stock drops to this number, the system flags it as low and prompts a reorder. Used by the Inventory module.',
        'reorder_quantity'     => 'Reorder quantity',
        'reorder_quantity_help'=> 'How many units to order each time the reorder level is hit.',
        'expiry_date'          => 'Expiry date',
        'expiry_date_help' => 'Default expiry for this product. Per-batch expiry overrides this once the inventory module tracks batches.',

        'hsn_code'          => 'HSN / Tax code',
        'pharmacy_schedule' => 'Drug schedule',
        'pharmacy_schedule_none' => '— Not a scheduled drug',
        'generic_name'      => 'Generic name',
        'manufacturer'      => 'Manufacturer',

        'is_active'   => 'Available for sale',
        'is_active_help'   => 'When off, this product is hidden from the cashier catalog.',
        'is_featured' => 'Featured (Quick Picks)',
        'is_featured_help' => 'Pin this item on the cashier’s common-items rail.',
    ],

    'errors' => [
        'title'                  => 'Please review the highlighted fields',
        'has_sales'              => 'Cannot delete “:name” — :count sale line(s) reference it. Archive it instead.',
        'variant_requires_one'   => 'A variant product needs at least one variant. Add one or switch the type back to Simple.',
        'variant_sku_duplicate'  => 'Variant SKU “:sku” appears more than once. Each variant needs a unique SKU.',
        'variant_sku_taken'      => 'Variant SKU “:sku” is already in use by another product.',
        'variant_has_sales'      => 'Cannot remove variant “:label” — :count sale line(s) reference it. Archive the variant instead.',
        'variant_mrp_below_selling' => 'MRP can’t be lower than the variant’s selling price.',
        'kit_requires_one'       => 'A kit needs at least one component. Add one or switch the type back to Simple.',
        'kit_self_include'       => 'A kit cannot include itself as a component.',
        'kit_duplicate_component'=> 'This component is already listed in the kit. Combine the lines or pick a different variant.',
        'kit_variant_mismatch'   => 'The selected variant does not belong to the chosen component product.',
    ],

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

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

    'import' => [
        'title'           => 'Import products',
        'sub'             => 'Upload a CSV or Excel file. We\'ll show you a preview and let you map each column before anything is saved.',
        'upload_label'    => 'Choose a CSV or XLSX file',
        'upload_hint'     => 'Max file size 5 MB · UTF-8 encoding · first row is treated as headers',
        'upload_button'   => 'Upload and preview',

        // Sample template + format guidance shown above the upload form.
        'sample_title'    => 'Not sure about the format?',
        'sample_sub'      => 'Download a ready-to-fill sample with the right columns and example rows. Replace the examples with your products, then upload it below.',
        'sample_csv'      => 'Download sample (CSV)',
        'sample_xlsx'     => 'Download sample (Excel)',
        'guide_title'     => 'How to fill it in',
        'guide_required'  => 'Required columns: SKU, Name, Category, Unit, Cost Price, Selling Price.',
        'guide_match'     => 'Category, Brand, Unit and Tax Group are matched by name — use names that already exist in your catalog (e.g. a Unit "Piece" or "kg").',
        'guide_sku'       => 'SKU identifies the product: a SKU that already exists updates that product, a new SKU creates one.',
        'guide_bool'      => 'Yes/No columns (Track Stock, Sold By Weight, Track Batches, Track Expiry, Active, Featured) accept Yes or No.',
        'guide_money'     => 'Cost Price must be greater than 0 and not more than Selling Price. Leave optional columns blank if they don\'t apply.',
        'guide_extra'     => 'You can add, remove or reorder columns — the next step lets you map each column to a field before anything is saved.',
        'review_title'    => 'Map columns to product fields',
        'review_sub'      => 'Pick the destination field for each column. Set unused columns to "— Ignore —". Rows are matched on SKU — a known SKU updates that product, a new SKU creates one.',
        'preview_table'   => 'Preview (first :count rows)',
        'no_data'         => 'The file contains a header row but no data rows.',
        'commit_button'   => 'Run import',
        'cancel'          => 'Cancel',
        'ignore_column'   => '— Ignore —',
        'done_title'      => 'Import complete',
        'done_sub'        => ':created created · :updated updated · :skipped skipped',
        'done_back'       => 'Back to products',
        'errors_heading'  => 'Errors',
        'errors' => [
            'unreadable'      => "We couldn't parse that file: :error",
            'session_expired' => 'Your import session expired. Please upload the file again.',
            'sku_unmapped'    => 'SKU column must be mapped — every product row needs a SKU to identify it.',
        ],
        'fields' => [
            'sku'               => 'SKU',
            'name'              => 'Name',
            'barcode'           => 'Barcode',
            'category'          => 'Category (by name)',
            'brand'             => 'Brand (by name)',
            'unit'              => 'Unit (code or name)',
            'tax_group'         => 'Tax rule (by name)',
            'cost_price'        => 'Cost price',
            'selling_price'     => 'Selling price',
            'mrp'               => 'MRP',
            'description'       => 'Description',
            'short_description' => 'Short description',
            'track_stock'       => 'Track stock (yes/no)',
            'sold_by_weight'    => 'Sold by weight (yes/no)',
            'track_batches'     => 'Track batches (yes/no)',
            'track_expiry'      => 'Track expiry (yes/no)',
            'reorder_level'     => 'Reorder level',
            'reorder_quantity'  => 'Reorder quantity',
            'hsn_code'          => 'HSN / Tax code',
            'pharmacy_schedule' => 'Drug schedule',
            'generic_name'      => 'Generic name',
            'manufacturer'      => 'Manufacturer',
            'is_active'         => 'Active (yes/no)',
            'is_featured'       => 'Featured (yes/no)',
        ],
    ],
];
