<?php $__env->startSection('title', translate('firebase configuration')); ?>

<?php $__env->startSection('content'); ?>
    <div class="content container-fluid">
        <div class="page-header">
            <h1 class="page-header-title">
                <span class="page-header-icon">
                    <img src="<?php echo e(asset('public/assets/admin/img/firebase.png')); ?>" class="w--26" alt="">
                </span>
                <span>
                    <?php echo e(translate('system settings')); ?>

                </span>
            </h1>
            <ul class="nav nav-tabs border-0 mb-3">
                <li class="nav-item">
                    <a class="nav-link" href="<?php echo e(route('admin.business-settings.web-app.system-setup.language.index')); ?>">
                        <?php echo e(translate('Language Setup')); ?>

                    </a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="<?php echo e(route('admin.business-settings.web-app.system-setup.app_setting')); ?>">
                        <?php echo e(translate('App Settings')); ?>

                    </a>
                </li>
                <li class="nav-item">
                    <a class="nav-link active" href="<?php echo e(route('admin.business-settings.web-app.system-setup.firebase_message_config_index')); ?>">
                        <?php echo e(translate('Firebase Configuration')); ?>

                    </a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="<?php echo e(route('admin.business-settings.web-app.system-setup.db-index')); ?>">
                        <?php echo e(translate('Clean Database')); ?>

                    </a>
                </li>
            </ul>
        </div>
        <div class="card">
            <?php ($data=\App\CentralLogics\Helpers::get_business_settings('firebase_message_config')); ?>
            <div class="card-body">
                <form action="<?php echo e(env('APP_MODE')!='demo'?route('admin.business-settings.web-app.system-setup.firebase_message_config'):'javascript:'); ?>" method="post"
                      enctype="multipart/form-data">
                    <?php echo csrf_field(); ?>
                    <?php if(isset($data)): ?>
                        <div class="form-group">
                            <label class="form-label"><?php echo e(translate('API Key')); ?></label><br>
                            <input type="text" placeholder="<?php echo e(translate('Ex : AIzaSyDuBlqmsh9xw17osLOuEn7iqHtDlpkulcM')); ?>" class="form-control" name="apiKey"
                                   value="<?php echo e(env('APP_MODE')!='demo'?$data['apiKey']:''); ?>" required autocomplete="off">
                        </div>

                        <div class="form-group">
                            <label class="form-label"><?php echo e(translate('Auth Domain')); ?></label><br>
                            <input type="text" class="form-control" name="authDomain" value="<?php echo e(env('APP_MODE')!='demo'?$data['authDomain']:''); ?>" required autocomplete="off" placeholder="<?php echo e(translate('Ex : grofresh-3986f.firebaseapp.com')); ?>">
                        </div>
                        <div class="form-group">
                            <label class="form-label"><?php echo e(translate('Project ID')); ?></label><br>
                            <input type="text" class="form-control" name="projectId" value="<?php echo e(env('APP_MODE')!='demo'?$data['projectId']:''); ?>" required autocomplete="off" placeholder="<?php echo e(translate('Ex : grofresh-3986f')); ?>">
                        </div>
                        <div class="form-group">
                            <label class="form-label"><?php echo e(translate('Storage Bucket')); ?></label><br>
                            <input type="text" class="form-control" name="storageBucket" value="<?php echo e(env('APP_MODE')!='demo'?$data['storageBucket']:''); ?>" required autocomplete="off" placeholder="<?php echo e(translate('Ex : grofresh-3986f.appspot.com')); ?>">
                        </div>

                        <div class="form-group">
                            <label class="form-label"><?php echo e(translate('Messaging Sender ID')); ?></label><br>
                            <input type="text" placeholder="<?php echo e(translate('Ex : 250728969979')); ?>" class="form-control" name="messagingSenderId"
                                   value="<?php echo e(env('APP_MODE')!='demo'?$data['messagingSenderId']:''); ?>" required autocomplete="off">
                        </div>

                        <div class="form-group">
                            <label class="form-label"><?php echo e(translate('App ID')); ?></label><br>
                            <input type="text" placeholder="<?php echo e(translate('Ex : 1:250728969979:web:b79642a7b2d2400b75a25e')); ?>" class="form-control" name="appId"
                                   value="<?php echo e(env('APP_MODE')!='demo'?$data['appId']:''); ?>" required autocomplete="off">
                        </div>

                        <div class="btn--container justify-content-end">
                        <button type="reset" class="btn btn--reset"><?php echo e(translate('reset')); ?></button>
                            <button type="<?php echo e(env('APP_MODE')!='demo'?'submit':'button'); ?>"
                                    class="btn btn-primary mb-2 call-demo"><?php echo e(translate('save')); ?>

                            </button>
                        </div>
                    <?php else: ?>
                        <button type="submit" class="btn btn--primary"><?php echo e(translate('configure')); ?></button>
                    <?php endif; ?>
                </form>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.admin.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/mimeld/mxepto.mimeld.com/resources/views/admin-views/business-settings/firebase-config-index.blade.php ENDPATH**/ ?>