<div class="content-wrapper">
    <section class="content-header mt-4">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-sm-8">
                    <h4>Firebase Settings</h4>
                </div>
                <div class="col-sm-4 d-flex justify-content-end">
                    <ol class="breadcrumb float-sm-right">
                        <li class="breadcrumb-item"><a href="<?= base_url('admin/home') ?>">Home</a>
                        </li>
                        <li class="breadcrumb-item active">Firebase Settings</li>
                    </ol>
                </div>
            </div>
        </div>
        <div class="container-fluid">
            <div class="row">
                <div class="col-md-12">
                    <div class="card card-info">
                        <form class="form-horizontal form-submit-event" action="<?= base_url('admin/web-setting/store_firebase') ?>" method="POST" id="system_setting_form" enctype="multipart/form-data">
                            <div class="card-body">
                                <div class="row">
                                    <div class="form-group col-md-6">
                                        <label class="mb-2" for="apiKey">apiKey <span class='text-danger text-xs'>*</span></label>
                                        <input type="text" class="form-control mb-2" name="apiKey" value="<?= (isset($firebase_settings['apiKey'])) ? $firebase_settings['apiKey'] : '' ?>" placeholder="apiKey" />
                                    </div>
                                    <div class="form-group col-md-6">
                                        <label class="mb-2" for="authDomain">authDomain <span class='text-danger text-xs'>*</span></label>
                                        <input type="text" class="form-control mb-2" name="authDomain" value="<?= (isset($firebase_settings['authDomain'])) ? $firebase_settings['authDomain'] : '' ?>" placeholder="authDomain" />
                                    </div>
                                    <div class="form-group col-md-6">
                                        <label class="mb-2" for="databaseURL">databaseURL <span class='text-danger text-xs'>*</span></label>
                                        <input type="text" class="form-control mb-2" name="databaseURL" value="<?= (isset($firebase_settings['databaseURL'])) ? $firebase_settings['databaseURL'] : '' ?>" placeholder="databaseURL" />
                                    </div>
                                    <div class="form-group col-md-6">
                                        <label class="mb-2" for="projectId">projectId <span class='text-danger text-xs'>*</span></label>
                                        <input type="text" class="form-control mb-2" name="projectId" value="<?= (isset($firebase_settings['projectId'])) ? $firebase_settings['projectId'] : '' ?>" placeholder="projectId" />
                                    </div>
                                    <div class="form-group col-md-6">
                                        <label class="mb-2" for="storageBucket">storageBucket <span class='text-danger text-xs'>*</span></label>
                                        <input type="text" class="form-control mb-2" name="storageBucket" value="<?= (isset($firebase_settings['storageBucket'])) ? $firebase_settings['storageBucket'] : '' ?>" placeholder="storageBucket" />
                                    </div>
                                    <div class="form-group col-md-6">
                                        <label class="mb-2" for="messagingSenderId">messagingSenderId <span class='text-danger text-xs'>*</span></label>
                                        <input type="text" class="form-control mb-2" name="messagingSenderId" value="<?= (isset($firebase_settings['messagingSenderId'])) ? $firebase_settings['messagingSenderId'] : '' ?>" placeholder="messagingSenderId" />
                                    </div>
                                    <div class="form-group col-md-6">
                                        <label class="mb-2" for="appId">appId <span class='text-danger text-xs'>*</span></label>
                                        <input type="text" class="form-control mb-2" name="appId" value="<?= (isset($firebase_settings['appId'])) ? $firebase_settings['appId'] : '' ?>" placeholder="appId" />
                                    </div>
                                    <div class="form-group col-md-6">
                                        <label class="mb-2" for="measurementId">measurementId <span class='text-danger text-xs'>*</span></label>
                                        <input type="text" class="form-control mb-2" name="measurementId" value="<?= (isset($firebase_settings['measurementId'])) ? $firebase_settings['measurementId'] : '' ?>" placeholder="measurementId" />
                                    </div>
                                    <div class="form-group mt-4">
                                        <button type="reset" class="btn btn-warning">Reset</button>
                                        <button type="submit" class="btn btn-success update_firebase_setting" id="submit_btn">Update Settings</button>
                                    </div>
                                </div>
                                <hr>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
    </section>
    <!-- /.content -->
</div>