<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\AppBaseController;
use App\Http\Controllers\Controller;
use App\Models\AboutAppConfiguration;
use App\Models\AppConfiguration;
use Illuminate\Http\Request;

class AboutAppConfigurationsController extends AppBaseController
{
    public function index()
    {
        $aboutAppConfigurationData = AboutAppConfiguration::pluck('value', 'key')->toArray();
        $aboutAppConfigurationData['is_show_social'] = AboutAppConfiguration::IS_SHOW_SOCIAL[$aboutAppConfigurationData['is_show_social']];
        return $this->sendResponse($aboutAppConfigurationData, 'About App Configuration fetch successfully');
    }
}
