<?php

return [
    /*
     * Enable or disable fields in the support bubble.
     * Keep in mind that `name` and `email` will be hidden automatically
     * when a logged in user is detected and `prefill_logged_in_user` is set.
     */
    'fields' => [
        'name' => true,
        'email' => true,
        'subject' => true,
        'message' => true,
    ],

    /*
     * All chat bubble responses will be sent to this email address.
     */
    'mail_to' => env('SUPPORT_BUBBLE_MAIL_TO', config('app.super_admin_email')),
    'mail_from' => null, // by default this is config('mail.from.address')
    'mailer' => null, // by default this is config('mail.default')

    /**
     * This queue will be used when sending out mails.
     * When set to null, the default queue will be used.
     */
    'queue_name' => null,

    /*
     * When set to true use currently logged in user to fill in
     * the name and email fields. Both fields will also be hidden.
     */
    'prefill_logged_in_user' => true,

    /*
     * The TailwindCSS classes used on a couple of key components.
     *
     * To customize the components further, you can publish
     * the views of this package.
     */
    'classes' => [
        'container' => 'text-base items-end z-30 flex-col m-4 gap-3',
        'bubble' => 'hidden sm:block | bg-teal-400 rounded-full shadow-lg w-14 h-14 text-white p-4',
        'input' => 'bg-neutral-100 dark:bg-neutral-700 border border-neutral-200 dark:border-neutral-600 w-full max-w-full p-2 rounded-sm shadow-input text-neutral-800 text-base',
        'button' => 'inline-flex place-center px-4 py-3 h-10 border-0 bg-teal-500 hover:bg-teal-600 active:bg-teal-600 overflow-hidden rounded-sm text-white leading-none no-underline',
    ],

    /*
     * The default route and controller will be registered using this route name.
     * This is a good place to hook in your own route and controller if necessary.
     */
    'form_action_route' => 'supportBubble.submit',

     /**
     * The positioning of the bubble and the form, change this between `right-to-left` and `left-to-right`.
     * If you want to use RTL, you must have your layout set to RTL like this
     * <html lang="ar-TN" dir="rtl">
     * By default, the value of this is `left-to-right`.
     */
    'direction' => 'left-to-right'
];
