<?php $__env->startSection('content'); ?>
<!-- start page title -->

            <div class="container-xxl flex-grow-1 container-p-y">
<?php if(session('success')): ?>
<div class="alert alert-success">
    <?php echo e(session('success')); ?>

</div>
<?php endif; ?>
<?php if($errors->any()): ?>
    <div class="alert alert-danger">
        <ul>
            <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <li><?php echo e($error); ?></li>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </ul>
    </div>
<?php endif; ?>
<div class="card mb-3">
    <div class="card-body">
        <h4 class="mb-3 header-title mt-0">Konfigurasi Website</h4>
        <form action="<?php echo e(url('/setting/web')); ?>" method="POST" enctype="multipart/form-data">
            <?php echo csrf_field(); ?>
            <div class="form-group">
                <div class="mb-3 row">
                    <label class="col-lg-2 col-form-label" for="example-fileinput">Judul Website</label>
                    <div class="col-lg-10">
                        <input type="text" class="form-control" value="<?php echo e($web->judul_web); ?>" name="judul_web">
                    </div>
                </div>
                <div class="mb-3 row">
                    <label class="col-lg-2 col-form-label" for="example-fileinput">Deskripsi Website</label>
                    <div class="col-lg-10">
                        <textarea class="form-control" name="deskripsi_web"><?php echo e($web->deskripsi_web); ?></textarea>
                    </div>
                </div>
                <div class="mb-3 row">
                    <label class="col-lg-2 col-form-label" for="example-fileinput">Logo Header</label>
                    <div class="col-lg-10">
                    <img width="100" src="<?php echo e(asset($web->logo_header)); ?>" alt="xmelshop">
                        <input type="file" class="form-control" name="logo_header">
                    </div>
                </div>
                <div class="mb-3 row">
                    <label class="col-lg-2 col-form-label" for="example-fileinput">Logo Footer</label>
                    <div class="col-lg-10">
                    <img width="100" src="<?php echo e(asset($web->logo_footer)); ?>" alt="xmelshop">
                        <input type="file" class="form-control" name="logo_footer">
                    </div>
                </div>
                <div class="mb-3 row">
                    <label class="col-lg-2 col-form-label" for="example-fileinput">Logo Favicon</label>
                    <div class="col-lg-10">
                    <img class ="ms-4" width="50" src="<?php echo e(asset($web->logo_favicon)); ?>" alt="xmelshop">
                        <input type="file" class="form-control" name="logo_favicon">
                    </div>
                </div>
                <div class="mb-3 row">
                    <label class="col-lg-2 col-form-label" for="example-fileinput">URL WA</label>
                    <div class="col-lg-10">
                        <input type="text" class="form-control" value="<?php echo e($web->url_wa); ?>" name="url_wa">
                    </div>
                </div>
                <div class="mb-3 row">
                    <label class="col-lg-2 col-form-label" for="example-fileinput">URL IG</label>
                    <div class="col-lg-10">
                        <input type="text" class="form-control" value="<?php echo e($web->url_ig); ?>" name="url_ig">
                    </div>
                </div>
                <div class="mb-3 row">
                    <label class="col-lg-2 col-form-label" for="example-fileinput">URL TikTok</label>
                    <div class="col-lg-10">
                        <input type="text" class="form-control" value="<?php echo e($web->url_tiktok); ?>" name="url_tiktok" >
                    </div>
                </div>
                <div class="mb-3 row">
                    <label class="col-lg-2 col-form-label" for="example-fileinput">URL Youtube</label>
                    <div class="col-lg-10">
                        <input type="text" class="form-control" value="<?php echo e($web->url_youtube); ?>" name="url_youtube" >
                    </div>
                </div>
                <div class="mb-3 row">
                    <label class="col-lg-2 col-form-label" for="example-fileinput">URL FB</label>
                    <div class="col-lg-10">
                        <input type="text" class="form-control" value="<?php echo e($web->url_fb); ?>" name="url_fb" >
                    </div>
                </div>
                <div class="mb-3 row">
                    <label class="col-lg-2 col-form-label" for="example-fileinput">( Check Game )</label>
                    <div class="col-lg-10">
                        <input type="password" class="form-control" value="<?php echo e($web->topupindo_api); ?>" name="topupindo_api" >
                    </div>
                </div>
            </div>
            <button type="submit" class="btn btn-primary">Submit</button>
        </form>
    </div>
</div>

<div class="card mb-3">
    <div class="card-body">
        <h4 class="mb-3 header-title mt-0">Konfigurasi Warna Website</h4>
        <form action="<?php echo e(url('/setting/warnaweb')); ?>" method="POST" enctype="multipart/form-data">
            <?php echo csrf_field(); ?>
            
            <div class="form-group">
    <div class="mb-3 row">
        <label for="exampleInputColorPicker" class="col-lg-2 col-form-label" for="example-fileinput">WARNA 1</label>
        <div class="col-lg-10">
            <input type="color" class="form-control" id="colorbackground" value="<?php echo e($web->warna1); ?>" name="warna1">
        </div>
    </div>
    <div class="mb-3 row">
        <label for="exampleInputColorPicker" class="col-lg-2 col-form-label" for="example-fileinput">WARNA 2</label>
        <div class="col-lg-10">
            <input type="color" class="form-control" id="colorInputmel" value="<?php echo e($web->warna2); ?>" name="warna2">
        </div>
    </div>
    <div class="mb-3 row">
        <label for="exampleInputColorPicker" class="col-lg-2 col-form-label" for="example-fileinput">WARNA 3</label>
        <div class="col-lg-10">
            <input type="color" class="form-control" id="colorInputtih" value="<?php echo e($web->warna3); ?>" name="warna3">
        </div>
    </div>
    <div class="mb-3 row">
        <label for="exampleInputColorPicker" class="col-lg-2 col-form-label" for="example-fileinput">WARNA 4</label>
        <div class="col-lg-10">
            <input type="color" class="form-control" id="colorInputt" value="<?php echo e($web->warna4); ?>" name="warna4">
        </div>
    </div>
    
   
</div>

            
            
            <button type="submit" class="btn btn-primary">Submit</button>
        </form>
    </div>
</div>


<div class="card mb-3">
    <div class="card-body">
        <h4 class="mb-3 header-title mt-0">Konfigurasi Tripay</h4>
        <form action="<?php echo e(url('/setting/tripay')); ?>" method="POST" enctype="multipart/form-data">
            <?php echo csrf_field(); ?>
            <div class="form-group">
                <div class="mb-3 row">
                    <label class="col-lg-2 col-form-label" for="example-fileinput">TRIPAY API</label>
                    <div class="col-lg-10">
                        <input type="text" class="form-control" value="<?php echo e($web->tripay_api); ?>" name="tripay_api">
                    </div>
                </div>
                <div class="mb-3 row">
                    <label class="col-lg-2 col-form-label" for="example-fileinput">TRIPAY MERCHANT CODE</label>
                    <div class="col-lg-10">
                        <input type="text" class="form-control" value="<?php echo e($web->tripay_merchant_code); ?>" name="tripay_merchant_code">
                    </div>
                </div>
                <div class="mb-3 row">
                    <label class="col-lg-2 col-form-label" for="example-fileinput">TRIPAY PRIVATE KEY</label>
                    <div class="col-lg-10">
                        <input type="text" class="form-control" value="<?php echo e($web->tripay_private_key); ?>" name="tripay_private_key">
                    </div>
                </div>
            </div>
            <button type="submit" class="btn btn-primary">Submit</button>
        </form>
    </div>
</div>

<div class="card mb-3">
    <div class="card-body">
        <h4 class="mb-3 header-title mt-0">Konfigurasi Tokopay</h4>
        <form action="<?php echo e(url('/setting/tokopay')); ?>" method="POST" enctype="multipart/form-data">
            <?php echo csrf_field(); ?>
            <div class="form-group">
                <div class="mb-3 row">
                    <label class="col-lg-2 col-form-label" for="example-fileinput">Tokopay Merchant ID</label>
                    <div class="col-lg-10">
                        <input type="text" class="form-control" value="<?php echo e($web->tokopay_merchant_id); ?>" name="tokopay_merchant_id">
                    </div>
                </div>
                <div class="mb-3 row">
                    <label class="col-lg-2 col-form-label" for="example-fileinput">Tokopay Secret Key</label>
                    <div class="col-lg-10">
                        <input type="text" class="form-control" value="<?php echo e($web->tokopay_secret_key); ?>" name="tokopay_secret_key">
                    </div>
                </div>
            </div>
            <button type="submit" class="btn btn-primary">Submit</button>
        </form>
    </div>
</div>
<div class="card mb-3">
    <div class="card-body">
        <h4 class="mb-3 header-title mt-0">Konfigurasi Paydisini</h4>
        <form action="<?php echo e(url('/setting/paydisini')); ?>" method="POST" enctype="multipart/form-data">
            <?php echo csrf_field(); ?>
            <div class="form-group">
                <div class="mb-3 row">
                    <label class="col-lg-2 col-form-label" for="example-fileinput">Paydisini Apikey</label>
                    <div class="col-lg-10">
                        <input type="text" class="form-control" value="<?php echo e($web->paydisini); ?>" name="paydisini">
                    </div>
                </div>
               
            </div>
            <button type="submit" class="btn btn-primary">Submit</button>
        </form>
    </div>
</div>

<div class="card mb-3">
    <div class="card-body">
        <h4 class="mb-3 header-title mt-0">Konfigurasi Digiflazz</h4>
        <form action="<?php echo e(url('/setting/digiflazz')); ?>" method="POST" enctype="multipart/form-data">
            <?php echo csrf_field(); ?>
            <div class="form-group">
                <div class="mb-3 row">
                    <label class="col-lg-2 col-form-label" for="example-fileinput">USERNAME DIGI</label>
                    <div class="col-lg-10">
                        <input type="text" class="form-control" value="<?php echo e($web->username_digi); ?>" name="username_digi">
                    </div>
                </div>
                <div class="mb-3 row">
                    <label class="col-lg-2 col-form-label" for="example-fileinput">API KEY DIGI</label>
                    <div class="col-lg-10">
                        <input type="text" class="form-control" value="<?php echo e($web->api_key_digi); ?>" name="api_key_digi">
                    </div>
                </div>
            </div>
            <button type="submit" class="btn btn-primary">Submit</button>
        </form>
    </div>
</div>

<div class="card mb-3">
    <div class="card-body">
        <h4 class="mb-3 header-title mt-0">Konfigurasi Bangjeff API</h4>
        <form action="<?php echo e(url('/setting/bangjeff')); ?>" method="POST" enctype="multipart/form-data">
            <?php echo csrf_field(); ?>
            <div class="form-group">
                <div class="mb-3 row">
                    <label class="col-lg-2 col-form-label" for="example-fileinput">Api Key</label>
                    <div class="col-lg-10">
                        <input type="text" class="form-control" value="<?php echo e($web->apikey_bangjeff); ?>" name="apikey_bangjeff">
                    </div>
                </div>
            </div>
            <button type="submit" class="btn btn-primary">Submit</button>
        </form>
    </div>
</div>

<div class="card mb-3">
    <div class="card-body">
        <h4 class="mb-3 header-title mt-0">Konfigurasi Aoshi API</h4>
        <form action="<?php echo e(url('/setting/aoshi')); ?>" method="POST" enctype="multipart/form-data">
            <?php echo csrf_field(); ?>
            <div class="form-group">
                <div class="mb-3 row">
                    <label class="col-lg-2 col-form-label" for="example-fileinput">Api Key</label>
                    <div class="col-lg-10">
                        <input type="text" class="form-control" value="<?php echo e($web->apikey_aoshi); ?>" name="apikey_aoshi">
                    </div>
                </div>
            </div>
            <button type="submit" class="btn btn-primary">Submit</button>
        </form>
    </div>
</div>

<div class="card mb-3">
    <div class="card-body">
        <h4 class="mb-3 header-title mt-0">Konfigurasi Mobilegamestore API</h4>
        <form action="<?php echo e(url('/setting/mobilegamestore')); ?>" method="POST" enctype="multipart/form-data">
            <?php echo csrf_field(); ?>
            <div class="form-group">
                <div class="mb-3 row">
                    <label class="col-lg-2 col-form-label" for="example-fileinput">Api Key Mobilegamestore</label>
                    <div class="col-lg-10">
                        <input type="text" class="form-control" value="<?php echo e($web->api_mobilegamestore); ?>" name="api_mobilegamestore">
                    </div>
                </div>
            </div>
            <button type="submit" class="btn btn-primary">Submit</button>
        </form>
    </div>
</div>

<div class="card mb-3">
    <div class="card-body">
        <h4 class="mb-3 header-title mt-0">Konfigurasi ApiGames</h4>
        <form action="<?php echo e(url('/setting/apigames')); ?>" method="POST" enctype="multipart/form-data">
            <?php echo csrf_field(); ?>
            <div class="form-group">
                <div class="mb-3 row">
                    <label class="col-lg-2 col-form-label" for="example-fileinput">APIGAMES SECRET</label>
                    <div class="col-lg-10">
                        <input type="text" class="form-control" value="<?php echo e($web->apigames_secret); ?>" name="apigames_secret">
                    </div>
                </div>
                <div class="mb-3 row">
                    <label class="col-lg-2 col-form-label" for="example-fileinput">APIGAMES MERCHANT</label>
                    <div class="col-lg-10">
                        <input type="text" class="form-control" value="<?php echo e($web->apigames_merchant); ?>" name="apigames_merchant">
                    </div>
                </div>
            </div>
            <button type="submit" class="btn btn-primary">Submit</button>
        </form>
    </div>
</div>

<div class="card mb-3">
    <div class="card-body">
        <h4 class="mb-3 header-title mt-0">Konfigurasi vip reseller</h4>
        <form action="<?php echo e(url('/setting/vip')); ?>" method="POST" enctype="multipart/form-data">
            <?php echo csrf_field(); ?>
            <div class="form-group">
                <div class="mb-3 row">
                    <label class="col-lg-2 col-form-label" for="example-fileinput">VIP APIID</label>
                    <div class="col-lg-10">
                        <input type="text" class="form-control" value="<?php echo e($web->vip_apiid); ?>" name="vip_apiid">
                    </div>
                </div>
                <div class="mb-3 row">
                    <label class="col-lg-2 col-form-label" for="example-fileinput">VIP APIKEY</label>
                    <div class="col-lg-10">
                        <input type="text" class="form-control" value="<?php echo e($web->vip_apikey); ?>" name="vip_apikey">
                    </div>
                </div>
            </div>
            <button type="submit" class="btn btn-primary">Submit</button>
        </form>
    </div>
</div>

<div class="card mb-3">
    <div class="card-body">
        <h4 class="mb-3 header-title mt-0">Konfigurasi WA GATEWAY</h4>
        <form action="<?php echo e(url('/setting/wagateway')); ?>" method="POST" enctype="multipart/form-data">
            <?php echo csrf_field(); ?>
            <div class="form-group">
                <div class="mb-3 row">
                    <label class="col-lg-2 col-form-label" for="example-fileinput">NOMOR ADMIN</label>
                    <div class="col-lg-10">
                        <input type="text" class="form-control" value="<?php echo e($web->nomor_admin); ?>" name="nomor_admin" id="nomor">
                    </div>
                </div>
                <div class="mb-3 row">
                    <label class="col-lg-2 col-form-label" for="example-fileinput">WA KEY</label>
                    <div class="col-lg-10">
                        <input type="text" class="form-control" value="<?php echo e($web->wa_key); ?>" name="wa_key">
                    </div>
                </div>
                <div class="mb-3 row">
                    <label class="col-lg-2 col-form-label" for="example-fileinput">WA NUMBER</label>
                    <div class="col-lg-10">
                        <input type="text" class="form-control" value="<?php echo e($web->wa_number); ?>" name="wa_number" id="nomor">
                    </div>
                </div>
            </div>
            <button type="submit" class="btn btn-primary">Submit</button>
        </form>
        
        <!--Status Connection-->
        
    </div>
</div>
<div class="card mb-3">
    <div class="card-body">
        <h4 class="mb-3 header-title mt-0">Konfigurasi mutasi E-wallet / bank</h4>
        <form action="<?php echo e(url('/setting/mutasi')); ?>" method="POST" enctype="multipart/form-data">
            <?php echo csrf_field(); ?>
            <div class="form-group">
                <div class="mb-3 row">
                    <label class="col-lg-2 col-form-label" for="example-fileinput">OVO ADMIN</label>
                    <div class="col-lg-10">
                        <input type="text" class="form-control" value="<?php echo e($web->ovo_admin); ?>" name="ovo_admin">
                    </div>
                </div>
                <div class="mb-3 row">
                    <label class="col-lg-2 col-form-label" for="example-fileinput">OVO1 ADMIN</label>
                    <div class="col-lg-10">
                        <input type="text" class="form-control" value="<?php echo e($web->ovo1_admin); ?>" name="ovo1_admin">
                    </div>
                </div>
                <div class="mb-3 row">
                    <label class="col-lg-2 col-form-label" for="example-fileinput">GOPAY ADMIN</label>
                    <div class="col-lg-10">
                        <input type="text" class="form-control" value="<?php echo e($web->gopay_admin); ?>" name="gopay_admin">
                    </div>
                </div>
                <div class="mb-3 row">
                    <label class="col-lg-2 col-form-label" for="example-fileinput">GOPAY1 ADMIN</label>
                    <div class="col-lg-10">
                        <input type="text" class="form-control" value="<?php echo e($web->gopay1_admin); ?>" name="gopay1_admin">
                    </div>
                </div>
                <div class="mb-3 row">
                    <label class="col-lg-2 col-form-label" for="example-fileinput">DANA ADMIN</label>
                    <div class="col-lg-10">
                        <input type="text" class="form-control" value="<?php echo e($web->dana_admin); ?>" name="dana_admin">
                    </div>
                </div>
                <div class="mb-3 row">
                    <label class="col-lg-2 col-form-label" for="example-fileinput">SHOPEEPAY ADMIN</label>
                    <div class="col-lg-10">
                        <input type="text" class="form-control" value="<?php echo e($web->shopeepay_admin); ?>" name="shopeepay_admin">
                    </div>
                </div>
                <div class="mb-3 row">
                    <label class="col-lg-2 col-form-label" for="example-fileinput">BCA ADMIN</label>
                    <div class="col-lg-10">
                        <input type="text" class="form-control" value="<?php echo e($web->bca_admin); ?>" name="bca_admin">
                    </div>
                </div>
            </div>
            <button type="submit" class="btn btn-primary">Submit</button>
        </form>
    </div>
</div>


<script>
        const nomorInputs = document.querySelectorAll("#nomor");

        nomorInputs.forEach(input => {
            input.addEventListener("input", function () {
                let nomor = this.value;
                if (nomor.startsWith("08")) {
                    nomor = "62" + nomor.slice(1);
                    this.value = nomor;
                }
            });
        });
</script>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('main-admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/akstarsc/genztopup/resources/views/components/admin/settingweb.blade.php ENDPATH**/ ?>