<?php

/*
|--------------------------------------------------------------------------
| Branch terminology
|--------------------------------------------------------------------------
|
| The product calls a person who belongs to the organisation an "عضو" and
| everyone else "غير عضو". That is only true for a club. The same branch
| software runs inside residential compounds (مقيم / غير مقيم), on beaches
| and in resorts (مشترك / زائر), in hotels (نزيل / زائر) and in gyms.
|
| The data model does not change — `participants.membership_type` still holds
| 'member' and 'non_member'. Only the words shown to a human do, and they are
| chosen per branch, because one academy can run a club and a compound at the
| same time.
|
| Eight Arabic forms are stored rather than derived, because Arabic will not
| let you derive them: "ال" prefixes the noun in "العضو" but the second word
| in "غير العضو", and the plural of عضو is أعضاء while the plural of مقيم is
| مقيمين. Anything that tried to be clever here would be wrong for half the
| presets. Everything a screen actually needs beyond these eight — "نوع
| العضوية", "رقم العضوية", "سعر العضو" — composes cleanly from them and is
| built in App\Domain\Identity\Support\Terminology.
|
| The plurals are stored in the ـين form (المقيمين, not المقيمون) on purpose.
| Almost every place the app prints a plural puts it after a preposition or in
| an idafa — "مسميات المقيمين", "للمشتركين" — where the ـين form is the correct
| one. Broken plurals such as الأعضاء and النزلاء do not inflect and are
| unaffected either way.
|
*/

return [

    // The preset a branch falls back to when it has never been configured.
    'default' => 'club',

    /*
    |----------------------------------------------------------------------
    | Presets
    |----------------------------------------------------------------------
    |
    | Picking one fills every field in the settings screen; the fields stay
    | editable afterwards, so a branch that is nearly a compound picks
    | 'compound' and rewrites the one word that does not fit. There is no
    | 'custom' entry because that is not a separate mode — it is any preset
    | with edits on top of it.
    |
    */
    'presets' => [

        'club' => [
            'label' => 'نادٍ رياضي / اجتماعي',
            'terms' => [
                'member'                => 'عضو',
                'member_definite'       => 'العضو',
                'members'               => 'الأعضاء',
                'non_member'            => 'غير عضو',
                'non_member_definite'   => 'غير العضو',
                'non_members'           => 'غير الأعضاء',
                'membership'            => 'العضوية',
                'membership_indefinite' => 'عضوية',

                'member_en'      => 'Member',
                'members_en'     => 'Members',
                'non_member_en'  => 'Non-member',
                'non_members_en' => 'Non-members',
                'membership_en'  => 'Membership',
            ],
        ],

        'compound' => [
            'label' => 'مجمع سكني / كمبوند',
            'terms' => [
                'member'                => 'مقيم',
                'member_definite'       => 'المقيم',
                'members'               => 'المقيمين',
                'non_member'            => 'غير مقيم',
                'non_member_definite'   => 'غير المقيم',
                'non_members'           => 'غير المقيمين',
                'membership'            => 'الإقامة',
                'membership_indefinite' => 'إقامة',

                'member_en'      => 'Resident',
                'members_en'     => 'Residents',
                'non_member_en'  => 'Non-resident',
                'non_members_en' => 'Non-residents',
                'membership_en'  => 'Residency',
            ],
        ],

        'beach' => [
            'label' => 'شاطئ / منتجع',
            'terms' => [
                'member'                => 'مشترك',
                'member_definite'       => 'المشترك',
                'members'               => 'المشتركين',
                'non_member'            => 'زائر يومي',
                'non_member_definite'   => 'الزائر اليومي',
                'non_members'           => 'الزوار اليوميين',
                'membership'            => 'الاشتراك',
                'membership_indefinite' => 'اشتراك',

                'member_en'      => 'Subscriber',
                'members_en'     => 'Subscribers',
                'non_member_en'  => 'Day visitor',
                'non_members_en' => 'Day visitors',
                'membership_en'  => 'Subscription',
            ],
        ],

        'hotel' => [
            'label' => 'فندق / نُزُل',
            'terms' => [
                'member'                => 'نزيل',
                'member_definite'       => 'النزيل',
                'members'               => 'النزلاء',
                'non_member'            => 'زائر',
                'non_member_definite'   => 'الزائر',
                'non_members'           => 'الزوار',
                'membership'            => 'الإقامة',
                'membership_indefinite' => 'إقامة',

                'member_en'      => 'Guest',
                'members_en'     => 'Guests',
                'non_member_en'  => 'Visitor',
                'non_members_en' => 'Visitors',
                'membership_en'  => 'Stay',
            ],
        ],

        'gym' => [
            'label' => 'صالة رياضية / جيم',
            'terms' => [
                'member'                => 'مشترك',
                'member_definite'       => 'المشترك',
                'members'               => 'المشتركين',
                'non_member'            => 'غير مشترك',
                'non_member_definite'   => 'غير المشترك',
                'non_members'           => 'غير المشتركين',
                'membership'            => 'الاشتراك',
                'membership_indefinite' => 'اشتراك',

                'member_en'      => 'Subscriber',
                'members_en'     => 'Subscribers',
                'non_member_en'  => 'Non-subscriber',
                'non_members_en' => 'Non-subscribers',
                'membership_en'  => 'Subscription',
            ],
        ],

        'school' => [
            'label' => 'مدرسة / جهة تعليمية',
            'terms' => [
                'member'                => 'منتسب',
                'member_definite'       => 'المنتسب',
                'members'               => 'المنتسبين',
                'non_member'            => 'غير منتسب',
                'non_member_definite'   => 'غير المنتسب',
                'non_members'           => 'غير المنتسبين',
                'membership'            => 'الانتساب',
                'membership_indefinite' => 'انتساب',

                'member_en'      => 'Affiliate',
                'members_en'     => 'Affiliates',
                'non_member_en'  => 'Non-affiliate',
                'non_members_en' => 'Non-affiliates',
                'membership_en'  => 'Affiliation',
            ],
        ],

    ],

];
