<?php
/**
 * GoPools CRM — Full Translation Dictionary
 * Usage: gp_tr($pdo, 'key')
 */

function gp_translations(): array {
    return [
        // ── Navigation ─────────────────────────────────────────────
        'dashboard'           => ['el' => 'Ταμπλό',               'en' => 'Dashboard'],
        'projects'            => ['el' => 'Έργα',                  'en' => 'Projects'],
        'all_projects'        => ['el' => 'Όλα τα έργα',           'en' => 'All Projects'],
        'new_project'         => ['el' => 'Νέο Έργο',              'en' => 'New Project'],
        'people'              => ['el' => 'Άνθρωποι',              'en' => 'People'],
        'customers'           => ['el' => 'Πελάτες',               'en' => 'Customers'],
        'employees'           => ['el' => 'Υπάλληλοι',             'en' => 'Employees'],
        'partners'            => ['el' => 'Συνεργάτες',            'en' => 'Partners'],
        'operations'          => ['el' => 'Λειτουργίες',           'en' => 'Operations'],
        'vehicles'            => ['el' => 'Οχήματα',               'en' => 'Vehicles'],
        'reports'             => ['el' => 'Αναφορές',              'en' => 'Reports'],
        'inbox'               => ['el' => 'Εισερχόμενα',           'en' => 'Inbox'],
        'payroll'             => ['el' => 'Μισθοδοσία',            'en' => 'Monthly Payroll'],
        'settings'            => ['el' => 'Ρυθμίσεις',             'en' => 'Settings'],
        'settings_center'     => ['el' => 'Κέντρο Ρυθμίσεων',     'en' => 'Settings Center'],
        'system_logs'         => ['el' => 'Αρχεία Συστήματος',     'en' => 'System Logs'],
        'branding'            => ['el' => 'Εμφάνιση',              'en' => 'Branding'],
        'users'               => ['el' => 'Χρήστες',               'en' => 'Users'],
        'fix_permissions'     => ['el' => 'Επιδιόρθωση Δικαιωμάτων', 'en' => 'Fix Permissions'],
        'warehouse'           => ['el' => 'Αποθήκη',               'en' => 'Warehouse'],
        'time_clock'          => ['el' => 'Ωρολόγιο',              'en' => 'Time Clock'],
        'my_jobs'             => ['el' => 'Οι Εργασίες μου',       'en' => 'My Jobs'],
        'partner_portal'      => ['el' => 'Portal Συνεργάτη',      'en' => 'Partner Portal'],
        'my_warranties'       => ['el' => 'Οι Εγγυήσεις μου',     'en' => 'My Warranties'],
        'send_to_crew'        => ['el' => 'Αποστολή σε Πλήρωμα',  'en' => 'Send to Crew'],
        'logout'              => ['el' => 'Αποσύνδεση',            'en' => 'Logout'],
        'theme'               => ['el' => 'Θέμα',                  'en' => 'Theme'],

        // ── Project menu (already in gp_tr but merged here) ────────
        'project'             => ['el' => 'Στοιχεία έργου',        'en' => 'Project'],
        'equipment'           => ['el' => 'Εξοπλισμός',            'en' => 'Equipment'],
        'payments'            => ['el' => 'Πληρωμές',              'en' => 'Payments'],
        'expenses'            => ['el' => 'Έξοδα',                  'en' => 'Expenses'],
        'tasks'               => ['el' => 'Εργασίες',              'en' => 'Tasks'],
        'dispatch'            => ['el' => 'Ανάθεση',               'en' => 'Dispatch'],
        'photos'              => ['el' => 'Φωτογραφίες',           'en' => 'Photos'],
        'map'                 => ['el' => 'Χάρτης',                'en' => 'Map'],
        'warranties'          => ['el' => 'Εγγυήσεις',             'en' => 'Warranties'],
        'send'                => ['el' => 'Αποστολή',              'en' => 'Send'],
        'access'              => ['el' => 'Πρόσβαση',              'en' => 'Access'],
        'employee_expenses'   => ['el' => 'Έξοδα υπαλλήλων',      'en' => 'Employee Expenses'],
        'project_statuses'    => ['el' => 'Καταστάσεις έργων',     'en' => 'Project Statuses'],
        'add_status'          => ['el' => 'Προσθήκη κατάστασης',   'en' => 'Add Status'],
        'language'            => ['el' => 'Γλώσσα',                'en' => 'Language'],

        // ── Common Actions ──────────────────────────────────────────
        'save'                => ['el' => 'Αποθήκευση',            'en' => 'Save'],
        'cancel'              => ['el' => 'Ακύρωση',               'en' => 'Cancel'],
        'delete'              => ['el' => 'Διαγραφή',              'en' => 'Delete'],
        'edit'                => ['el' => 'Επεξεργασία',           'en' => 'Edit'],
        'back'                => ['el' => 'Πίσω',                  'en' => 'Back'],
        'search'              => ['el' => 'Αναζήτηση',             'en' => 'Search'],
        'filter'              => ['el' => 'Φίλτρο',                'en' => 'Filter'],
        'submit'              => ['el' => 'Υποβολή',               'en' => 'Submit'],
        'upload'              => ['el' => 'Ανέβασμα',              'en' => 'Upload'],
        'download'            => ['el' => 'Λήψη',                  'en' => 'Download'],
        'view'                => ['el' => 'Προβολή',               'en' => 'View'],
        'add'                 => ['el' => 'Προσθήκη',              'en' => 'Add'],
        'yes'                 => ['el' => 'Ναι',                   'en' => 'Yes'],
        'no'                  => ['el' => 'Όχι',                   'en' => 'No'],
        'close'               => ['el' => 'Κλείσιμο',              'en' => 'Close'],
        'open'                => ['el' => 'Άνοιγμα',               'en' => 'Open'],
        'print'               => ['el' => 'Εκτύπωση',              'en' => 'Print'],

        // ── Common Fields ───────────────────────────────────────────
        'name'                => ['el' => 'Όνομα',                 'en' => 'Name'],
        'title'               => ['el' => 'Τίτλος',               'en' => 'Title'],
        'code'                => ['el' => 'Κωδικός',               'en' => 'Code'],
        'status'              => ['el' => 'Κατάσταση',             'en' => 'Status'],
        'date'                => ['el' => 'Ημερομηνία',            'en' => 'Date'],
        'start_date'          => ['el' => 'Ημ. Έναρξης',          'en' => 'Start Date'],
        'end_date'            => ['el' => 'Ημ. Λήξης',            'en' => 'End Date'],
        'address'             => ['el' => 'Διεύθυνση',             'en' => 'Address'],
        'city'                => ['el' => 'Πόλη',                  'en' => 'City'],
        'phone'               => ['el' => 'Τηλέφωνο',             'en' => 'Phone'],
        'email'               => ['el' => 'Email',                 'en' => 'Email'],
        'notes'               => ['el' => 'Σημειώσεις',            'en' => 'Notes'],
        'description'         => ['el' => 'Περιγραφή',             'en' => 'Description'],
        'amount'              => ['el' => 'Ποσό',                  'en' => 'Amount'],
        'budget'              => ['el' => 'Προϋπολογισμός',        'en' => 'Budget'],
        'customer'            => ['el' => 'Πελάτης',               'en' => 'Customer'],
        'category'            => ['el' => 'Κατηγορία',             'en' => 'Category'],
        'type'                => ['el' => 'Τύπος',                 'en' => 'Type'],
        'role'                => ['el' => 'Ρόλος',                 'en' => 'Role'],
        'actions'             => ['el' => 'Ενέργειες',             'en' => 'Actions'],
        'created_at'          => ['el' => 'Δημιουργήθηκε',         'en' => 'Created'],
        'updated_at'          => ['el' => 'Ενημερώθηκε',           'en' => 'Updated'],
        'active'              => ['el' => 'Ενεργό',                'en' => 'Active'],
        'inactive'            => ['el' => 'Ανενεργό',              'en' => 'Inactive'],
        'total'               => ['el' => 'Σύνολο',                'en' => 'Total'],
        'balance'             => ['el' => 'Υπόλοιπο',              'en' => 'Balance'],
        'profit'              => ['el' => 'Κέρδος',                'en' => 'Profit'],
        'cost'                => ['el' => 'Κόστος',                'en' => 'Cost'],

        // ── Dashboard ───────────────────────────────────────────────
        'active_customers'    => ['el' => 'Ενεργοί Πελάτες',      'en' => 'Active Customers'],
        'total_projects'      => ['el' => 'Σύνολο Έργων',          'en' => 'Projects'],
        'active_employees'    => ['el' => 'Ενεργοί Υπάλληλοι',    'en' => 'Active Employees'],
        'active_vehicles'     => ['el' => 'Ενεργά Οχήματα',       'en' => 'Active Vehicles'],
        'project_calendar'    => ['el' => 'Ημερολόγιο Έργων',     'en' => 'Project Calendar'],
        'recent_activity'     => ['el' => 'Πρόσφατη Δραστηριότητα', 'en' => 'Recent Activity'],
        'upcoming_deadlines'  => ['el' => '⚠️ Επερχόμενες Λήξεις', 'en' => '⚠️ Upcoming Deadlines'],
        'all_clear'           => ['el' => 'Όλα καλά',              'en' => 'All Clear'],
        'unpaid_projects'     => ['el' => 'Απλήρωτα Έργα',         'en' => 'Unpaid Projects'],
        'overdue_projects'    => ['el' => 'Εκκρεμή Έργα (>1 ημέρα)', 'en' => 'Overdue Projects (>1 day)'],
        'unscheduled_projects'=> ['el' => 'Μη Προγραμματισμένα',   'en' => 'Unscheduled Projects'],
        'no_unscheduled'      => ['el' => 'Όλα τα έργα έχουν δρομολογηθεί!', 'en' => 'All projects are scheduled!'],
        'completed_projects'  => ['el' => 'Ολοκληρωμένα Έργα',     'en' => 'Completed Projects'],

        // ── Project Fields ──────────────────────────────────────────
        'project_code'        => ['el' => 'Κωδικός Έργου',         'en' => 'Project Code'],
        'installation_cost'   => ['el' => 'Κόστος Εγκατάστασης',   'en' => 'Installation Cost'],
        'planned_end'         => ['el' => 'Προγραμματισμένη Λήξη', 'en' => 'Planned End'],
        'actual_end'          => ['el' => 'Πραγματική Λήξη',       'en' => 'Actual End'],
        'offer_file'          => ['el' => 'Αρχείο Προσφοράς',      'en' => 'Offer / Quote File'],
        'save_project'        => ['el' => 'Αποθήκευση Έργου',      'en' => 'Save Project'],
        'edit_project'        => ['el' => 'Επεξεργασία Έργου',     'en' => 'Edit Project'],
        'new_project_title'   => ['el' => 'Νέο Έργο',              'en' => 'New Project'],
        'project_saved'       => ['el' => 'Το έργο αποθηκεύτηκε.',  'en' => 'Project saved successfully.'],
        'back_to_projects'    => ['el' => 'Πίσω στα Έργα',         'en' => 'Back to Projects'],
        'financial_summary'   => ['el' => 'Οικονομική Σύνοψη',     'en' => 'Financial Summary'],
        'project_photos'      => ['el' => '📸 Φωτογραφίες Έργου',  'en' => '📸 Project Photos'],
        'photos_from_workers' => ['el' => 'Φωτογραφίες από το πεδίο', 'en' => 'Photos from field workers'],
        'no_photos'           => ['el' => 'Δεν υπάρχουν φωτογραφίες ακόμα.', 'en' => 'No photos uploaded yet.'],
        'timeline_comments'   => ['el' => 'Ιστορικό & Σχόλια',     'en' => 'Timeline & Comments'],
        'write_note'          => ['el' => 'Γράψε μια σημείωση...', 'en' => 'Write a note...'],
        'post_comment'        => ['el' => 'Δημοσίευση',            'en' => 'Post Comment'],
        'no_comments'         => ['el' => 'Δεν υπάρχουν σχόλια ακόμα.', 'en' => 'No comments yet.'],

        // ── Employee/Partner Portal ─────────────────────────────────
        'employee_portal'     => ['el' => 'Portal Υπαλλήλου',      'en' => 'Employee Portal'],
        'my_schedule'         => ['el' => 'Το Πρόγραμμά μου',      'en' => 'My Schedule'],
        'assigned_jobs'       => ['el' => 'Ανατεθειμένες Εργασίες', 'en' => 'Your assigned jobs on the calendar'],
        'no_assigned_jobs'    => ['el' => 'Δεν υπάρχουν αναθέσεις.', 'en' => 'No assigned jobs.'],
        'project_label'       => ['el' => 'Έργο',                  'en' => 'Project'],
        'customer_label'      => ['el' => 'Πελάτης',               'en' => 'Customer'],
        'phone_label'         => ['el' => 'Τηλέφωνο',              'en' => 'Phone'],
        'address_label'       => ['el' => 'Διεύθυνση',             'en' => 'Address'],
        'role_label'          => ['el' => 'Ρόλος',                 'en' => 'Role'],
        'status_label'        => ['el' => 'Κατάσταση',             'en' => 'Status'],
        'duration'            => ['el' => '⏱ Διάρκεια',            'en' => '⏱ Duration'],
        'not_set'             => ['el' => 'Δεν έχει οριστεί',      'en' => 'Not set by admin'],
        'suggest_duration'    => ['el' => '📅 Πρότεινε Διάρκεια',  'en' => '📅 Suggest Duration'],
        'suggestion_sent'     => ['el' => '📤 Πρόταση Απεστάλη',   'en' => '📤 Suggestion Sent'],
        'upload_photos'       => ['el' => '📸 Ανέβασε Φωτογραφίες', 'en' => '📸 Upload Photos'],
        'pool'                => ['el' => 'Πισίνα',                'en' => 'Pool'],
        'mechanical'          => ['el' => 'Μηχανοστάσιο',          'en' => 'Mechanical'],
        'no_photos_yet'       => ['el' => 'Δεν υπάρχουν φωτογραφίες ακόμα.', 'en' => 'No photos uploaded yet.'],
        'request_missing'     => ['el' => '📦 Ζήτα Αντικατάσταση/Υλικό', 'en' => '📦 Request Missing Part / Tool'],
        'whats_missing'       => ['el' => 'Τι λείπει;',             'en' => "What's missing?"],
        'explain_missing'     => ['el' => 'Εξήγησε ποιο εξάρτημα/εργαλείο χρειάζεσαι...', 'en' => 'Explain what part or tool you need...'],
        'send_request'        => ['el' => 'Αποστολή Αιτήματος',    'en' => 'Send Request'],
        'previous_requests'   => ['el' => 'Προηγούμενα Αιτήματα',  'en' => 'Previous Requests'],
        'pending'             => ['el' => 'ΕΚΚΡΕΜΕΙ',              'en' => 'PENDING'],
        'sent'                => ['el' => 'ΑΠΕΣΤΆΛΗ',              'en' => 'SENT'],
        'tracking_number'     => ['el' => 'Αριθμός Αποστολής',     'en' => 'Tracking Number'],
        'request_sent_ok'     => ['el' => '✅ Αίτημα στάλθηκε στους Managers!', 'en' => '✅ Request sent to managers!'],
        'project_notes_lbl'   => ['el' => 'Σημειώσεις Έργου',      'en' => 'Project Notes'],
        'assignment_notes_lbl'=> ['el' => 'Σημειώσεις Ανάθεσης',   'en' => 'Assignment Notes'],
        'my_costing'          => ['el' => 'Η Τιμολόγησή μου',      'en' => 'My Costing'],
        'not_submitted'       => ['el' => 'Δεν υποβλήθηκε',        'en' => 'Not submitted'],
        'costing_btn'         => ['el' => 'Τιμολόγηση',            'en' => 'My Costing'],

        // ── Dispatch ────────────────────────────────────────────────
        'assign_employee'     => ['el' => 'Ανάθεση Υπαλλήλου',     'en' => 'Assign Employee'],
        'assign_partner'      => ['el' => 'Ανάθεση Συνεργάτη',     'en' => 'Assign Partner'],
        'assigned_date'       => ['el' => 'Ημερομηνία Ανάθεσης',   'en' => 'Assigned Date'],
        'create_assignment'   => ['el' => 'Δημιουργία Ανάθεσης',   'en' => 'Create Assignment'],
        'delete_assignment'   => ['el' => 'Διαγραφή Ανάθεσης',     'en' => 'Delete Assignment'],
        'duration_suggestions'=> ['el' => '⏱ Προτάσεις Διάρκειας', 'en' => '⏱ Duration Suggestions'],
        'missing_parts'       => ['el' => '📦 Αιτήματα Ελλείψεων', 'en' => '📦 Missing Parts Requests'],
        'mark_as_sent'        => ['el' => 'Σήμανση ως Απεστάλη',   'en' => 'Mark as Sent'],
        'part_description'    => ['el' => 'Περιγραφή Υλικού',      'en' => 'Part Description'],
        'fulfillment'         => ['el' => 'Εκπλήρωση',             'en' => 'Tracking / Courier Info'],
        'accept'              => ['el' => '✅ Αποδοχή',             'en' => '✅ Accept'],
        'reject'              => ['el' => '✖ Απόρριψη',            'en' => '✖ Reject'],
        'from'                => ['el' => 'Από',                   'en' => 'From'],
        'proposed_start'      => ['el' => 'Προτεινόμενη Έναρξη',   'en' => 'Proposed Start'],
        'proposed_end'        => ['el' => 'Προτεινόμενη Λήξη',     'en' => 'Proposed End'],
        'days'                => ['el' => 'Μέρες',                 'en' => 'Days'],

        // ── Notifications ───────────────────────────────────────────
        'notifications'       => ['el' => 'Ειδοποιήσεις',          'en' => 'Notifications'],
        'mark_all_read'       => ['el' => 'Σήμανση όλων',          'en' => 'Mark all read'],
        'clear_all'           => ['el' => 'Εκκαθάριση',            'en' => 'Clear All'],
        'no_notifications'    => ['el' => 'Δεν υπάρχουν ειδοποιήσεις', 'en' => 'No notifications'],

        // ── Pool Calculator ─────────────────────────────────────────
        'pool_calculator'     => ['el' => '🧮 Υπολογιστής Πισίνας', 'en' => '🧮 Pool Calculator'],
        'pool_dimensions'     => ['el' => '📐 Διαστάσεις Πισίνας', 'en' => '📐 Pool Dimensions'],
        'pool_specs'          => ['el' => '🧮 Προδιαγραφές Πισίνας', 'en' => '🧮 Pool Specifications'],
        'edit_calculator'     => ['el' => 'Επεξεργασία Υπολογιστή', 'en' => 'Edit Calculator'],
        'save_specs'          => ['el' => '💾 Αποθήκευση Προδιαγραφών', 'en' => '💾 Save Specs'],
        'auto_calc_note'      => ['el' => 'Αυτόματος υπολογισμός — μπορείτε να τροποποιήσετε οποιαδήποτε τιμή.', 'en' => 'Auto-calculated — you can edit any value.'],

        // ── Language UI ─────────────────────────────────────────────
        'switch_lang'         => ['el' => 'English',               'en' => 'Ελληνικά'],
        'lang_el'             => ['el' => '🇬🇷 Ελληνικά',           'en' => '🇬🇷 Greek'],
        'lang_en'             => ['el' => '🇬🇧 Αγγλικά',            'en' => '🇬🇧 English'],
        'lang_saved'          => ['el' => 'Η γλώσσα αποθηκεύτηκε', 'en' => 'Language saved'],

        // ── Errors & Status ─────────────────────────────────────────
        'error_required'      => ['el' => 'Το πεδίο είναι υποχρεωτικό', 'en' => 'This field is required'],
        'error_generic'       => ['el' => 'Κάτι πήγε στραβά',     'en' => 'Something went wrong'],
        'network_error'       => ['el' => '❌ Σφάλμα δικτύου',     'en' => '❌ Network error'],
        'saved_ok'            => ['el' => '✅ Αποθηκεύτηκε!',      'en' => '✅ Saved!'],
        'sending'             => ['el' => 'Αποστολή...',           'en' => 'Sending...'],
        'loading'             => ['el' => 'Φόρτωση...',            'en' => 'Loading...'],

        // ── Admin View ──────────────────────────────────────────────
        'admin_view'          => ['el' => 'Προβολή Admin',          'en' => 'Admin view'],
        'search_placeholder'  => ['el' => 'Αναζήτηση έργων, πελατών... (πατήστε /)', 'en' => 'Search projects, customers... (press /)'],
    ];
}
