<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <!-- Main content -->
    <section class="content-header mt-4">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-sm-8">
                    <h4>Notification 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">Notification Settings</li>
                    </ol>
                </div>
            </div>
        </div>
        <!-- /.container-fluid -->
        <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/Notification_settings/update_notification_settings'); ?>" method="POST" id="payment_setting_form" enctype="multipart/form-data">
                            <div class="card-body">
                                <div class="form-group">
                                    <div class="card-body">
                                        <div class="form-group">
                                            <label for="vap_id_Key">Vap Id Key : </label>
                                            <textarea class="form-control" name="vap_id_Key" placeholder='Vap Id Key ' rows="5"><?= $vap_id_Key ?></textarea>
                                        </div>

                                        <div class="form-group mt-3">
                                            <label for="firebase_project_id">Firebase Project ID : </label>
                                            <input type="text" id="firebase_project_id" class="form-control" name="firebase_project_id" placeholder='Firebase Project ID' value="<?= (isset($firebase_project_id) && !empty($firebase_project_id)) ? $firebase_project_id : '' ?>">
                                        </div>

                                        <div class="form-group mt-3">
    <label for="service_account_file" class="font-weight-bold">
        Service Account File 
        <span class="text-danger fs-12">*(Only JSON File is allowed)</span> :
    </label>
    <input type="file" name="service_account_file" id="service_account_file" class="form-control" accept=".json">

    <div class="mt-2 p-3 border rounded d-flex align-items-center bg-light">
        <i class="fa fa-file text-secondary me-2"></i>
        <span class="<?= (!empty($service_account_file) && $service_account_file !== '[]') ? 'text-primary' : 'text-danger' ?>">
            <?= (!empty($service_account_file) && $service_account_file !== '[]') 
                ? '<strong>Uploaded File:</strong> ' . htmlspecialchars($service_account_file) 
                : '<strong>No Service Account File Uploaded</strong>'; ?>
        </span>
    </div>
</div>


                                        <div class="form-group mt-4">
                                            <button type="reset" class="btn btn-warning">Reset</button>
                                            <button type="submit" class="btn btn-success update_notification" id="submit_btn">Update Notification Settings</button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                    <!--/.card-->
                </div>
                <!--/.col-md-12-->
            </div>
            <!-- /.row -->
        </div>
        <!-- /.container-fluid -->
    </section>
    <!-- /.content -->
</div>