<?php

return [
    'api' => 'API',
    'api_docs' => 'Rest API',
    'api_docs_help' => 'Centralized documentation for POS, delivery, waiter, and kiosk integrations.',
    'breadcrumb' => 'Super Admin > Settings > API',
    'open_docs' => 'Open docs',
    'copy_link' => 'Copy',
    'public_link' => 'Public share link',
    'public_link_help' => 'Generate a secure link for external developers. Regenerate to rotate.',
    'generate_link' => 'Generate link',
    'revoke_link' => 'Delete link',
    'public_link_empty' => 'No public link yet. Generate one to share read-only documentation.',
    'public_link_created' => 'Public link generated.',
    'public_link_revoked' => 'Public link revoked.',
    'public_banner' => 'Public, read-only documentation link generated from Super Admin settings.',
    'tester_title' => 'API testing',
    'tester_help' => 'Run live diagnostics using real credentials. Permission issues are highlighted.',
    'username' => 'Username / Email',
    'password' => 'Password',
    'password_placeholder' => '********',
    'run_test' => 'Run diagnostic',
    'testing' => 'Testing...',
    'status_ok' => 'Healthy',
    'status_permission' => 'Permission issue',
    'status_fail' => 'Unreachable',
    'no_tests' => 'Run a test to see endpoint health.',
    'unauthorized' => 'Unauthorized',
    'token_loaded' => 'Authenticated and loaded live user context.',
    'skipped_missing_context' => 'Skipped: missing :fields data but API is reachable.',
    'no_categories' => 'No categories returned yet; endpoint reachable.',
    'no_menus' => 'No menus returned yet; endpoint reachable.',
    'no_items' => 'No items available to test yet; endpoint reachable.',
    'no_order_type' => 'No order type returned to test charges.',
    'no_tables' => 'No tables available to test unlock.',
    'no_orders' => 'No orders available to validate this endpoint.',
    'no_reservations' => 'No reservations found to validate this endpoint.',
    'no_customers' => 'No customers available to test addresses.',
    'no_notifications' => 'No notifications found; API responding.',
    'no_branches' => 'No branches available for this account.',
    'internal_error' => 'Something went wrong. Please check logs.',
    'invalid_status' => 'Unsupported status value.',
    'not_found' => 'Record not found.',
    'partner_domain_required' => 'Domain is required.',
    'invalid_domain' => 'Please provide a valid domain.',
    'domain_not_matched' => 'Provided domain does not match application domain.',
    'main_domain_not_found' => 'Main domain not found.',
    'restaurant_domain_not_found' => 'Restaurant domain not found.',
    'domain_is_valid' => 'Domain is valid.',
    'google_map_key_missing' => 'Google Map API key is not configured.',
    'restapi_not_available' => 'Rest API module is not available.',
    'validation_success' => 'Validation successful.',

    'firebase_title' => 'Firebase Cloud Messaging',
    'firebase_help' => 'Configure Firebase Cloud Messaging (FCM) for delivery partner notifications.',
    'firebase_enabled' => 'Enable Firebase notifications',
    'firebase_enabled_help' => 'When enabled, the RestApi module will send push notifications using FCM.',
    'firebase_json_label' => 'Service account JSON file',
    'firebase_json_help' => 'Upload Firebase service-account JSON (Project settings → Service accounts → Generate new private key).',
    'firebase_json_current' => 'Current file: :file',
    'firebase_json_view' => 'View JSON',
    'firebase_json_hide' => 'Hide JSON',
    'firebase_json_not_found' => 'JSON file not found or invalid.',
    'firebase_json_steps_title' => 'Generate Service Account JSON for Push Notifications',
    'open' => 'Open',
    'firebase_json_step_1' => 'https://console.cloud.google.com/iam-admin/serviceaccounts',
    'firebase_json_step_2' => 'Make sure the same Firebase project is selected at the top.',
    'firebase_json_step_3' => 'Find Firebase Admin SDK account similar to: firebase-adminsdk-xxxxx',
    'firebase_json_step_4' => 'If it does not exist, you can create one.',
    'firebase_json_step_5' => 'Click the service account.',
    'firebase_json_step_6' => 'Go to the Keys tab.',
    'firebase_json_step_7' => 'Click: Add Key → Create New Key → Select JSON → Create',
    'firebase_json_step_8' => 'Download the JSON file (e.g. project-name-firebase-adminsdk-xxxxx.json) and upload it here.',
    'firebase_saved' => 'Firebase settings saved.',
    'firebase_save_button' => 'Save Firebase settings',
    'safety_ok' => 'Safety audit passed.',

    'doc' => [
        'toc' => 'On this page',
        'theme' => 'Theme',
        'overview_title' => 'Overview',
        'overview_desc' => 'Lightweight, token-based endpoints for building mobile POS, delivery, and admin experiences without touching core POS logic.',
        'base_url' => 'Base URL',
        'auth' => 'Auth',
        'formats' => 'Formats',

        'auth_title' => 'Authentication & Tokens',
        'auth_desc' => 'Issue scoped bearer tokens per staff account. Tokens inherit restaurant and branch context.',
        'login_summary' => 'Exchange staff credentials for a bearer token.',
        'login_note_token' => 'Send the returned token as Authorization: Bearer <token> on every request.',
        'login_note_permissions' => 'Token privileges match the user roles and permissions.',
        'me_summary' => 'Return the authenticated profile and enabled modules.',
        'me_note_roles' => 'Use the roles array to drive client-side feature flags.',

        'platform_title' => 'Platform & Config',
        'platform_desc' => 'Locale, currency, features, branches, and payment gateway flags to bootstrap clients.',
        'platform_config' => 'Bootstrap restaurant, branch, modules, and feature flags for the current token.',
        'platform_note_cache' => 'Responses are branch-aware. Switch branches to refresh context.',
        'languages_summary' => 'List active languages with codes and status.',
        'languages_note' => 'Fallback uses LanguageSetting::LANGUAGES if DB columns are limited.',
        'permissions_summary' => 'Return role names and granular permissions for the token.',
        'printers_summary' => 'List branch printers for routing tickets.',
        'receipt_summary' => 'Fetch receipt header/footer and formatting.',
        'switch_branch' => 'Switch the active branch for the current token.',

        'pos_title' => 'POS Endpoints',
        'pos_desc' => 'Menu, items, orders, and reservations for FOH and KDS workflows.',
        'menus_summary' => 'List active menus for the current branch.',
        'items_summary' => 'List menu items with pricing. Use filters for menus/categories.',
        'items_note_filters' => 'Filter by menu or category ids to reduce payload size.',
        'categories_summary' => 'List menu categories for the branch.',
        'items_by_category' => 'Fetch items by category.',
        'items_by_menu' => 'Fetch items for a specific menu.',
        'variations' => 'List variations for an item.',
        'modifiers' => 'List modifier groups for an item.',
        'extra_charges' => 'Fetch extra charges by order type.',
        'orders_create' => 'Create a POS order with items, actions, and routing.',
        'orders_list' => 'List orders with pagination.',
        'orders_filters' => 'Filter by status, type, branch_id, and page.',
        'orders_detail' => 'Fetch a single order.',
        'orders_status' => 'Update an order status.',
        'orders_pay' => 'Pay an order with payment records.',
        'customers' => 'List POS customers.',
        'customers_create' => 'Create a POS customer.',
        'phone_codes' => 'List phone codes for customer creation.',
        'taxes' => 'List taxes for the branch.',
        'restaurants' => 'List restaurants (super admin tokens).',
        'branches' => 'List branches for current restaurant.',
        'reservations' => 'List reservations.',
        'reservations_create' => 'Create a reservation.',
        'reservations_status' => 'Update reservation status.',
                'reservations_today' => 'Today\'s reservations shortcut.',
        'tables' => 'List tables for the branch.',
        'tables_unlock' => 'Force unlock a table.',
        'order_types' => 'List available order types.',
        'actions' => 'List allowed order actions.',
        'delivery_platforms' => 'List configured delivery platforms.',
        'order_number' => 'Fetch the next order number.',
        'waiters' => 'List waiters for assignment.',

        'customer_title' => 'Customer App',
        'customer_desc' => 'Customer catalog and order submission endpoints.',
        'catalog_summary' => 'Return menus, categories, and items for customer apps.',
        'customer_order' => 'Place a customer order (delivery/takeaway).',
        'customer_order_note' => 'Include customer_address_id for delivery flows.',
        'customer_orders' => 'List customer orders for the current token.',

        'notifications_title' => 'Notifications',
        'notifications_desc' => 'Register device tokens and fetch in-app notifications.',
        'notifications_register' => 'Register a device token for push notifications.',
        'notifications_list' => 'List notifications for the current user.',
        'notifications_read' => 'Mark a notification as read.',
        'notifications_test' => 'Send a test notification.',

        'sdks_title' => 'SDK Examples',
        'sdks_desc' => 'Use any language shown to consume endpoints with bearer auth.',
        'auth_required' => 'Auth required',
        'header' => 'Header',
        'value' => 'Value',
        'body_schema' => 'Request body',

        'shared_title' => 'Shared & Utilities',
        'shared_desc' => 'Common lookups and helpers for building clients.',
        'currencies_summary' => 'List currencies with codes and rates.',
        'gateways_summary' => 'Payment gateway meta for the restaurant.',
        'staff_summary' => 'List staff scoped to the restaurant.',
        'roles_summary' => 'List role names attached to the restaurant.',
        'areas_summary' => 'List delivery areas for the branch.',
        'customer_addresses' => 'List customer addresses by customer_id.',
    ],
];


