<?php echo $__env->make('admin.layouts.alert-modal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> 
<div class="row">
    <div class="col-lg-3 mb-2 mb-sm-0">
        <div class="nav flex-column nav-pills" id="v-pills-tab" role="tablist" aria-orientation="vertical">
            <a class="nav-link active show" id="v-pills-home-tab" data-toggle="pill" href="#v-pills-home" role="tab" aria-controls="v-pills-home"
                aria-selected="true">
                <i class="mdi mdi-home-variant"></i>
                <span class="">Utama</span>
            </a>
            <a class="nav-link" id="v-pills-profile-tab" data-toggle="pill" href="#v-pills-profile" role="tab" aria-controls="v-pills-profile"
                aria-selected="false">
                <i class="mdi mdi-account-circle"></i>
                <span class="">Profil</span>
            </a>
            <a class="nav-link" id="v-pills-order-tab" data-toggle="pill" href="#v-pills-order" role="tab" aria-controls="v-pills-order"
                aria-selected="false">
                <i class="mdi mdi-cart"></i>
                <span class="">Pesanan</span>
            </a>
            <a class="nav-link" id="v-pills-order-status-tab" data-toggle="pill" href="#v-pills-order-status" role="tab" aria-controls="v-pills-order-status"
                aria-selected="false">
                <i class="mdi mdi-card-search"></i>
                <span class="">Status Pesanan</span>
            </a>
            <a class="nav-link" id="v-pills-service-tab" data-toggle="pill" href="#v-pills-service" role="tab" aria-controls="v-pills-service"
                aria-selected="false">
                <i class="mdi mdi-tag-multiple"></i>
                <span class="">Layanan</span>
            </a>
            <a class="nav-link" id="v-pills-refill-tab" data-toggle="pill" href="#v-pills-refill" role="tab" aria-controls="v-pills-refill"
                aria-selected="false">
                <i class="mdi mdi-recycle"></i>
                <span class="">Refill Pesanan</span>
            </a>
            <a class="nav-link" id="v-pills-refill-status-tab" data-toggle="pill" href="#v-pills-refill-status" role="tab" aria-controls="v-pills-refill-status"
                aria-selected="false">
                <i class="mdi mdi-card-search"></i>
                <span class="">Status Refill</span>
            </a>
        </div>
    </div> 
    <div class="col-lg-9">
        <form method="post" action="<?php echo e(request()->url()); ?>" id="input_form">
        <?php echo csrf_field(); ?>
        <div class="tab-content" id="v-pills-tabContent">
            <div class="tab-pane fade active show" id="v-pills-home" role="tabpanel" aria-labelledby="v-pills-home-tab">
                <div class="form-group">
                    <label>Nama <text class="text-danger">*</text></label>
                    <input type="text" class="form-control" name="name" value="<?php echo e(old('name') ?? $target->name); ?>">
                    <small class="text-danger name_error"></small>
                </div>
                <div class="row">
                    <div class="form-group col-lg-4">
                        <label>ID <text class="text-danger">*</text></label>
                        <input type="text" class="form-control" name="provider_id" value="<?php echo e(old('provider_id') ?? $target->provider_id); ?>">
                        <small class="text-danger provider_id_error"></small>
                    </div>
                    <div class="form-group col-lg-4">
                        <label>Kunci <text class="text-danger">*</text></label>
                        <input type="text" class="form-control" name="provider_key" value="<?php echo e(old('provider_key') ?? $target->provider_key); ?>">
                        <small class="text-danger provider_key_error"></small>
                    </div>
                    <div class="form-group col-lg-4">
                        <label>Rahasia</label>
                        <input type="text" class="form-control" name="provider_secret" placeholder="Kosongkan jika tidak dibutuhkan" value="<?php echo e(old('provider_secret') ?? $target->provider_secret); ?>">
                        <small class="text-danger provider_secret_error"></small>
                    </div>
                </div>
                <div class="form-group">
                    <div class="custom-control custom-checkbox">
                        <input id="is_refill_support" name="is_refill_support" type="checkbox" class="custom-control-input" <?php if($target->id == true AND $target->is_refill_support == '1'): ?> checked <?php endif; ?>>
                        <label class="custom-control-label" for="is_refill_support">Refill Support</label>
                    </div>
                </div>
                <div class="form-group">
                    <div class="custom-control custom-checkbox">
                        <input id="is_default_settings" name="is_default_settings" type="checkbox" class="custom-control-input">
                        <label class="custom-control-label" for="is_default_settings">Default Settings (SMM Luar)</label>
                    </div>
                </div>
                <div class="form-group">
                    <div class="custom-control custom-checkbox">
                        <input id="is_indo_settings" name="is_indo_settings" type="checkbox" class="custom-control-input">
                        <label class="custom-control-label" for="is_indo_settings">Default Settings (SMM Indo)</label>
                    </div>
                </div>
            </div>
            <div class="tab-pane fade" id="v-pills-profile" role="tabpanel" aria-labelledby="v-pills-profile-tab">
                <div class="form-group">
                    <label>1. Endpoint</label>
                    <input type="url" class="form-control" name="endpoint[profile]" value="<?php echo e(isset($target->id) ? json_decode($target->profile_config, true)['endpoint'] : ''); ?>" placeholder="Kosongkan jika tidak dibutuhkan">
                </div>
                <hr />
                <div class="row">
                    <div class="col-lg-12">
                        <h6>2. Request</h6>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="request[profile][action]" placeholder="Kosongkan jika tidak dibutuhkan" value="<?php echo e(isset($target->id) ? json_decode($target->profile_config, true)['request']['action'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Aksi" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="request[profile][provider_id]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->profile_config, true)['request']['provider_id'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="ID" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="request[profile][provider_key]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->profile_config, true)['request']['provider_key'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Kunci" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="request[profile][provider_secret]" placeholder="Kosongkan jika tidak dibutuhkan" value="<?php echo e(isset($target->id) ? json_decode($target->profile_config, true)['request']['provider_secret'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Rahasia" readonly>
                    </div>
                </div>
                <hr />
                <div class="row">
                    <div class="col-lg-12">
                        <h6>3. Response</h6>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="response[profile][balance]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->profile_config, true)['response']['balance'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Saldo Tersisa" readonly>
                    </div>
                </div>
            </div>
            <div class="tab-pane fade" id="v-pills-order" role="tabpanel" aria-labelledby="v-pills-order-tab">
                <div class="form-group">
                    <label>1. Endpoint</label>
                    <input type="url" class="form-control" name="endpoint[order]" value="<?php echo e(isset($target->id) ? json_decode($target->order_config, true)['endpoint'] : ''); ?>" placeholder="Kosongkan jika tidak dibutuhkan">
                </div>
                <hr />
                <div class="row">
                    <div class="col-lg-12">
                        <h6>2. Request</h6>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="request[order][action]" placeholder="Kosongkan jika tidak dibutuhkan" value="<?php echo e(isset($target->id) ? json_decode($target->order_config, true)['request']['action'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Aksi" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="request[order][provider_id]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->order_config, true)['request']['provider_id'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="ID" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="request[order][provider_key]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->order_config, true)['request']['provider_key'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Kunci" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="request[order][provider_secret]" placeholder="Kosongkan jika tidak dibutuhkan" value="<?php echo e(isset($target->id) ? json_decode($target->order_config, true)['request']['provider_secret'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Rahasia" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="request[order][service]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->order_config, true)['request']['service'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="ID Layanan" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="request[order][target]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->order_config, true)['request']['target'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Target" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="request[order][quantity]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->order_config, true)['request']['quantity'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Jumlah" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="request[order][custom_comments]" placeholder="Kosongkan jika tidak dibutuhkan" value="<?php echo e(isset($target->id) ? json_decode($target->order_config, true)['request']['custom_comments'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Custom Comments" readonly>
                    </div>
                </div>
                <hr />
                <div class="row">
                    <div class="col-lg-12">
                        <h6>3. Response</h6>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="response[order][order_id]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->order_config, true)['response']['order_id'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="ID Pesanan" readonly>
                    </div>
                </div>
            </div>
            <div class="tab-pane fade" id="v-pills-order-status" role="tabpanel" aria-labelledby="v-pills-order-status-tab">
                <div class="form-group">
                    <label>1. Endpoint</label>
                    <input type="url" class="form-control" name="endpoint[status]" value="<?php echo e(isset($target->id) ? json_decode($target->status_config, true)['endpoint'] : ''); ?>" placeholder="Kosongkan jika tidak dibutuhkan">
                </div>
                <div class="row">
                    <div class="col-lg-12">
                        <h6>2. Request</h6>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="request[status][action]" placeholder="Kosongkan jika tidak dibutuhkan" value="<?php echo e(isset($target->id) ? json_decode($target->status_config, true)['request']['action'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Aksi" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="request[status][provider_id]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->status_config, true)['request']['provider_id'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="ID" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="request[status][provider_key]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->status_config, true)['request']['provider_key'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Kunci" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="request[status][provider_secret]" placeholder="Kosongkan jika tidak dibutuhkan" value="<?php echo e(isset($target->id) ? json_decode($target->status_config, true)['request']['provider_secret'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Rahasia" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="request[status][order_id]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->status_config, true)['request']['order_id'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="ID Pesanan" readonly>
                    </div>
                </div>
                <hr />
                <div class="row">
                    <div class="col-lg-12">
                        <h6>3. Response</h6>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="response[status][status]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->status_config, true)['response']['status'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Status" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="response[status][start_count]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->status_config, true)['response']['start_count'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Jumlah Awal" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="response[status][remains]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->status_config, true)['response']['remains'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Jumlah Sisa" readonly>
                    </div>
                </div>
                <hr />
                <div class="row">
                    <div class="col-lg-12">
                        <h6>3. Status Value</h6>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="status_value[status][pending]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->status_config, true)['status_value']['pending'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Pending" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="status_value[status][processing]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->status_config, true)['status_value']['processing'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Processing" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="status_value[status][success]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->status_config, true)['status_value']['success'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Success" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="status_value[status][error]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->status_config, true)['status_value']['error'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Error" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="status_value[status][partial]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->status_config, true)['status_value']['partial'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Partial" readonly>
                    </div>
                </div>
            </div>
            <div class="tab-pane fade" id="v-pills-service" role="tabpanel" aria-labelledby="v-pills-service-tab">
                <div class="form-group">
                    <label>1. Endpoint</label>
                    <input type="url" class="form-control" name="endpoint[service]" value="<?php echo e(isset($target->id) ? json_decode($target->service_config, true)['endpoint'] : ''); ?>" placeholder="Kosongkan jika tidak dibutuhkan">
                </div>
                <div class="row">
                    <div class="col-lg-12">
                        <h6>2. Request</h6>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="request[service][action]" placeholder="Kosongkan jika tidak dibutuhkan" value="<?php echo e(isset($target->id) ? json_decode($target->service_config, true)['request']['action'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Aksi" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="request[service][provider_id]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->service_config, true)['request']['provider_id'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="ID" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="request[service][provider_key]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->service_config, true)['request']['provider_key'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Kunci" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="request[service][provider_secret]" placeholder="Kosongkan jika tidak dibutuhkan" value="<?php echo e(isset($target->id) ? json_decode($target->service_config, true)['request']['provider_secret'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Rahasia" readonly>
                    </div>
                </div>
                <hr />
                <div class="row">
                    <div class="col-lg-12">
                        <h6>3. Response</h6>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="response[service][looping]" placeholder="Kosongkan jika tidak dibutuhkan" value="<?php echo e(isset($target->id) ? json_decode($target->service_config, true)['looping'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Perulangan" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="response[service][id]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->service_config, true)['response']['id'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="ID Layanan" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="response[service][name]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->service_config, true)['response']['name'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Nama Layanan" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="response[service][description]" placeholder="Kosongkan jika tidak dibutuhkan" value="<?php echo e(isset($target->id) ? json_decode($target->service_config, true)['response']['description'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Deskripsi Layanan" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="response[service][category]" placeholder="Kosongkan jika tidak dibutuhkan" value="<?php echo e((isset($target->id) AND isset(json_decode($target->service_config, true)['response']['category'])) ? json_decode($target->service_config, true)['response']['category'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Kategori Layanan" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="response[service][price]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->service_config, true)['response']['price'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Harga Layanan" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="response[service][min]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->service_config, true)['response']['min'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Min. Layanan" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="response[service][max]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->service_config, true)['response']['max'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Maks. Layanan" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="response[service][type]" placeholder="Kosongkan jika tidak dibutuhkan" value="<?php echo e(isset($target->id) ? json_decode($target->service_config, true)['response']['type'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Tipe Layanan" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="response[service][refill]" placeholder="Kosongkan jika tidak dibutuhkan" value="<?php echo e(isset($target->id) ? json_decode($target->service_config, true)['response']['refill'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Refill Layanan" readonly>
                    </div>
                </div>
                <hr />
                <div class="row">
                    <div class="col-lg-12">
                        <h6>4. Other Value</h6>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="other_value[service][custom_comments]" placeholder="Kosongkan jika tidak dibutuhkan" value="<?php echo e(isset($target->id) ? json_decode($target->service_config, true)['other_value']['custom_comments'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Custom Comments" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="other_value[service][comment_likes]" placeholder="Kosongkan jika tidak dibutuhkan" value="<?php echo e((isset($target->id) AND isset(json_decode($target->service_config, true)['other_value']['comment_likes'])) ? json_decode($target->service_config, true)['other_value']['comment_likes'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Comment Likes" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="other_value[service][is_refill_support]" placeholder="Kosongkan jika tidak dibutuhkan" value="<?php echo e(isset($target->id) ? json_decode($target->service_config, true)['other_value']['is_refill_support'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Refill Support" readonly>
                    </div>
                </div>
                <hr />
                <div class="row">
                    <div class="col-lg-12">
                        <h6>5. Price & Profit Setting</h6>
                    </div>
                    <div class="form-group col-8 col-lg-9">
                        <select class="form-control" name="currency" data-toggle="select2">
                            <option value="" selected>Pilih...</option>
                            <option value="IDR" <?php echo e($target->id <> null ? (json_decode($target->service_config, true)['currency'] == 'IDR' ? 'selected' : '') : ''); ?>>IDR</option>
                            <option value="USD" <?php echo e($target->id <> null ? (json_decode($target->service_config, true)['currency'] == 'USD' ? 'selected' : '') : ''); ?>>USD</option>
                        </select>
                    </div>
                    <div class="form-group col-4 col-lg-3">
                        <input type="text" class="form-control" value="Mata Uang" readonly>
                    </div>
                    <div class="form-group col-3 col-lg-3">
                        <select class="form-control" name="price_setting[service][operator]" data-toggle="select2">
                            <option value="" selected>Pilih...</option>
                            <option value="*" <?php echo e($target->id <> null ? (json_decode($target->service_config, true)['price_setting']['operator'] == '*' ? 'selected' : '') : ''); ?>>* (Kali)</option>
                            <option value="/" <?php echo e($target->id <> null ? (json_decode($target->service_config, true)['price_setting']['operator'] == '/' ? 'selected' : '') : ''); ?>>/ (Bagi)</option>
                            <option value="+" <?php echo e($target->id <> null ? (json_decode($target->service_config, true)['price_setting']['operator'] == '+' ? 'selected' : '') : ''); ?>>+ (Tambah)</option>
                            <option value="-" <?php echo e($target->id <> null ? (json_decode($target->service_config, true)['price_setting']['operator'] == '-' ? 'selected' : '') : ''); ?>>- (Kurang)</option>
                        </select>
                    </div>
                    <div class="form-group col-5 col-lg-6">
                        <input type="text" class="form-control" name="price_setting[service][value]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->service_config, true)['price_setting']['value'] : ''); ?>">
                    </div>
                    <div class="form-group col-4 col-lg-3">
                        <input type="text" class="form-control" value="Harga" readonly>
                    </div>
                    <div class="form-group col-3 col-lg-3">
                        <select class="form-control" name="profit_setting[service][operator]" data-toggle="select2">
                            <option value="" selected>Pilih...</option>
                            <option value="*" <?php echo e($target->id <> null ? (json_decode($target->service_config, true)['profit_setting']['operator'] == '*' ? 'selected' : '') : ''); ?>>* (Kali)</option>
                            <option value="%" <?php echo e($target->id <> null ? (json_decode($target->service_config, true)['profit_setting']['operator'] == '%' ? 'selected' : '') : ''); ?>>% (Persen)</option>
                            <option value="+" <?php echo e($target->id <> null ? (json_decode($target->service_config, true)['profit_setting']['operator'] == '+' ? 'selected' : '') : ''); ?>>+ (Tambah)</option>
                            <option value="-" <?php echo e($target->id <> null ? (json_decode($target->service_config, true)['profit_setting']['operator'] == '-' ? 'selected' : '') : ''); ?>>- (Kurang)</option>
                        </select>
                    </div>
                    <div class="form-group col-5 col-lg-6">
                        <input type="text" class="form-control" name="profit_setting[service][value]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->service_config, true)['profit_setting']['value'] : ''); ?>">
                    </div>
                    <div class="form-group col-4 col-lg-3">
                        <input type="text" class="form-control" value="Keuntungan" readonly>
                    </div>
                </div>
            </div>
            <div class="tab-pane fade" id="v-pills-refill" role="tabpanel" aria-labelledby="v-pills-refill-tab">
                <div class="form-group">
                    <label>1. Endpoint</label>
                    <input type="url" class="form-control" name="endpoint[refill]" value="<?php echo e(isset($target->id) ? json_decode($target->refill_config, true)['endpoint'] : ''); ?>" placeholder="Kosongkan jika tidak dibutuhkan">
                </div>
                <hr />
                <div class="row">
                    <div class="col-lg-12">
                        <h6>2. Request</h6>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="request[refill][action]" placeholder="Kosongkan jika tidak dibutuhkan" value="<?php echo e(isset($target->id) ? json_decode($target->refill_config, true)['request']['action'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Aksi" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="request[refill][provider_id]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->refill_config, true)['request']['provider_id'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="ID" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="request[refill][provider_key]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->refill_config, true)['request']['provider_key'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Kunci" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="request[refill][provider_secret]" placeholder="Kosongkan jika tidak dibutuhkan" value="<?php echo e(isset($target->id) ? json_decode($target->refill_config, true)['request']['provider_secret'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Rahasia" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="request[refill][order_id]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->refill_config, true)['request']['order_id'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="ID Pesanan" readonly>
                    </div>
                </div>
                <hr />
                <div class="row">
                    <div class="col-lg-12">
                        <h6>3. Response</h6>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="response[refill][refill_id]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->refill_config, true)['response']['refill_id'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="ID Refill" readonly>
                    </div>
                </div>
            </div>
            <div class="tab-pane fade" id="v-pills-refill-status" role="tabpanel" aria-labelledby="v-pills-refill-status-tab">
                <div class="form-group">
                    <label>1. Endpoint</label>
                    <input type="url" class="form-control" name="endpoint[refill_status]" value="<?php echo e(isset($target->id) ? json_decode($target->refill_status_config, true)['endpoint'] : ''); ?>" placeholder="Kosongkan jika tidak dibutuhkan">
                </div>
                <div class="row">
                    <div class="col-lg-12">
                        <h6>2. Request</h6>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="request[refill_status][action]" placeholder="Kosongkan jika tidak dibutuhkan" value="<?php echo e(isset($target->id) ? json_decode($target->refill_status_config, true)['request']['action'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Aksi" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="request[refill_status][provider_id]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->refill_status_config, true)['request']['provider_id'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="ID" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="request[refill_status][provider_key]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->refill_status_config, true)['request']['provider_key'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Kunci" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="request[refill_status][provider_secret]" placeholder="Kosongkan jika tidak dibutuhkan" value="<?php echo e(isset($target->id) ? json_decode($target->refill_status_config, true)['request']['provider_secret'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Rahasia" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="request[refill_status][refill_id]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->refill_status_config, true)['request']['refill_id'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="ID Refill" readonly>
                    </div>
                </div>
                <hr />
                <div class="row">
                    <div class="col-lg-12">
                        <h6>3. Response</h6>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="response[refill_status][status]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->refill_status_config, true)['response']['status'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Status" readonly>
                    </div>
                </div>
                <hr />
                <div class="row">
                    <div class="col-lg-12">
                        <h6>3. Status Value</h6>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="status_value[refill_status][pending]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->refill_status_config, true)['status_value']['pending'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Pending" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="status_value[refill_status][processing]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->refill_status_config, true)['status_value']['processing'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Processing" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="status_value[refill_status][success]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->refill_status_config, true)['status_value']['success'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Success" readonly>
                    </div>
                    <div class="form-group col-6 col-lg-8">
                        <input type="text" class="form-control" name="status_value[refill_status][error]" placeholder="" value="<?php echo e(isset($target->id) ? json_decode($target->refill_status_config, true)['status_value']['error'] : ''); ?>">
                    </div>
                    <div class="form-group col-6 col-lg-4">
                        <input type="text" class="form-control" value="Error" readonly>
                    </div>
                </div>
            </div>
        </div>
        <hr />
        <div class="button-items d-grid gap-2 hidden" id="process-button">
            <button type="button" class="btn btn-primary btn-block waves-effect waves-light mt-0" disabled>Mohon Tunggu...</button>
        </div>
        <div class="row" id="main-button">
            <div class="col-6">
                <div class="button-items d-grid gap-2">
                    <button type="reset" class="btn btn-secondary btn-block waves-effect waves-light mt-0"><i class="mdi mdi-refresh"></i> Reset</button>
                </div>
            </div>
            <div class="col-6">
                <div class="button-items d-grid gap-2">
                    <button type="submit" class="btn btn-custom btn-block waves-effect waves-light mt-0"><i class="mdi mdi-send-outline"></i> Submit</button>
                </div>
            </div>
        </div>
        </form>
    </div>
</div>
<script src="<?php echo e(asset('assets/js/modal-form.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/app.js')); ?>"></script>
<script>
    $('input[name="is_default_settings"]').on('change', (event) => {
        if ($(event.currentTarget).is(':checked')) {
            $('input[name="is_refill_support"]').prop('checked', true);
            $('input[name="provider_id').val('-');

            $('input[name="request[profile][action]"]').val('balance');
            $('input[name="request[profile][provider_id]"]').val('-');
            $('input[name="request[profile][provider_key]"]').val('key');
            $('input[name="response[profile][balance]"]').val('[\'balance\']');

            $('input[name="request[order][action]"]').val('add');
            $('input[name="request[order][provider_id]"]').val('-');
            $('input[name="request[order][provider_key]"]').val('key');
            $('input[name="request[order][service]"]').val('service');
            $('input[name="request[order][target]"]').val('link');
            $('input[name="request[order][quantity]"]').val('quantity');
            $('input[name="request[order][custom_comments]"]').val('comments');
            $('input[name="response[order][order_id]"]').val('[\'order\']');

            $('input[name="request[status][action]"]').val('status');
            $('input[name="request[status][provider_id]"]').val('-');
            $('input[name="request[status][provider_key]"]').val('key');
            $('input[name="request[status][order_id]"]').val('order');
            $('input[name="response[status][status]"]').val('[\'status\']');
            $('input[name="response[status][start_count]"]').val('[\'start_count\']');
            $('input[name="response[status][remains]"]').val('[\'remains\']');
            $('input[name="status_value[status][pending]"]').val('Pending');
            $('input[name="status_value[status][success]"]').val('Completed');
            $('input[name="status_value[status][processing]"]').val('Processing');
            $('input[name="status_value[status][error]"]').val('Canceled');
            $('input[name="status_value[status][partial]"]').val('Cancelled');

            $('input[name="request[service][action]"]').val('services');
            $('input[name="request[service][provider_id]"]').val('-');
            $('input[name="request[service][provider_key]"]').val('key');
            $('input[name="response[service][id]"]').val('[\'service\']');
            $('input[name="response[service][name]"]').val('[\'name\']');
            $('input[name="response[service][category]"]').val('[\'category\']');
            $('input[name="response[service][price]"]').val('[\'rate\']');
            $('input[name="response[service][min]"]').val('[\'min\']');
            $('input[name="response[service][max]"]').val('[\'max\']');
            $('input[name="response[service][type]"]').val('[\'type\']');
            $('input[name="response[service][refill]"]').val('[\'refill\']');
            $('input[name="other_value[service][custom_comments]"]').val('Custom Comments');
            $('input[name="other_value[service][comment_likes]"]').val('Comment Likes');
            $('input[name="other_value[service][is_refill_support]"]').val('true');
            $('select[name="currency"]').val('USD');
            $('select[name="price_setting[service][operator]"]').val('*');
            $('input[name="price_setting[service][value]"]').val('1');
            $('select[name="profit_setting[service][operator]"]').val('*');
            $('input[name="profit_setting[service][value]"]').val('1');
            $('select[name="reseller_price_setting[service][operator]"]').val('*');
            $('input[name="reseller_price_setting[service][value]"]').val('1');
            $('select[name="reseller_profit_setting[service][operator]"]').val('*');
            $('input[name="reseller_profit_setting[service][value]"]').val('1');
            
            $('input[name="request[refill][action]"]').val('refill');
            $('input[name="request[refill][provider_id]"]').val('-');
            $('input[name="request[refill][provider_key]"]').val('key');
            $('input[name="request[refill][order_id]"]').val('order');
            $('input[name="response[refill][refill_id]"]').val('[\'refill\']');

            
            $('input[name="request[refill_status][action]"]').val('refill_status');
            $('input[name="request[refill_status][provider_id]"]').val('-');
            $('input[name="request[refill_status][provider_key]"]').val('key');
            $('input[name="request[refill_status][refill_id]"]').val('refill_id');
            $('input[name="response[refill_status][status]"]').val('[\'status\']');
            $('input[name="status_value[refill_status][pending]"]').val('Pending');
            $('input[name="status_value[refill_status][success]"]').val('Completed');
            $('input[name="status_value[refill_status][processing]"]').val('Processing');
            $('input[name="status_value[refill_status][error]"]').val('Error');
        }
    });
    $('input[name="is_indo_settings"]').on('change', (event) => {
        if ($(event.currentTarget).is(':checked')) {
            $('input[name="is_refill_support"]').prop('checked', true);
            $('input[name="provider_id').val('-');

            $('input[name="request[profile][action]"]').val('');
            $('input[name="request[profile][provider_id]"]').val('api_id');
            $('input[name="request[profile][provider_key]"]').val('api_key');
            $('input[name="response[profile][balance]"]').val('[\'data\'][\'balance\']');

            $('input[name="request[order][action]"]').val('');
            $('input[name="request[order][provider_id]"]').val('api_id');
            $('input[name="request[order][provider_key]"]').val('api_key');
            $('input[name="request[order][service]"]').val('service');
            $('input[name="request[order][target]"]').val('target');
            $('input[name="request[order][quantity]"]').val('quantity');
            $('input[name="request[order][custom_comments]"]').val('custom_comments');
            $('input[name="response[order][order_id]"]').val('[\'data\'][\'id\']');

            $('input[name="request[status][action]"]').val('');
            $('input[name="request[status][provider_id]"]').val('api_id');
            $('input[name="request[status][provider_key]"]').val('api_key');
            $('input[name="request[status][order_id]"]').val('id');
            $('input[name="response[status][status]"]').val('[\'data\'][\'status\']');
            $('input[name="response[status][start_count]"]').val('[\'data\'][\'start_count\']');
            $('input[name="response[status][remains]"]').val('[\'data\'][\'remains\']');
            $('input[name="status_value[status][pending]"]').val('Pending');
            $('input[name="status_value[status][success]"]').val('Success');
            $('input[name="status_value[status][processing]"]').val('Processing');
            $('input[name="status_value[status][error]"]').val('Error');
            $('input[name="status_value[status][partial]"]').val('Partial');

            $('input[name="request[service][action]"]').val('');
            $('input[name="request[service][provider_id]"]').val('api_id');
            $('input[name="request[service][provider_key]"]').val('api_key');
            $('input[name="response[service][id]"]').val('[\'id\']');
            $('input[name="response[service][looping]"]').val('[\'data\']');
            $('input[name="response[service][name]"]').val('[\'name\']');
            $('input[name="response[service][category]"]').val('[\'category\']');
            $('input[name="response[service][price]"]').val('[\'price\']');
            $('input[name="response[service][min]"]').val('[\'min\']');
            $('input[name="response[service][max]"]').val('[\'max\']');
            $('input[name="response[service][type]"]').val('[\'type\']');
            $('input[name="response[service][refill]"]').val('[\'refill\']');
            $('input[name="other_value[service][custom_comments]"]').val('custom_comments');
            $('input[name="other_value[service][comment_likes]"]').val('custom_link');
            $('input[name="other_value[service][is_refill_support]"]').val('true');
            $('select[name="currency"]').val('IDR');
            $('select[name="price_setting[service][operator]"]').val('*');
            $('input[name="price_setting[service][value]"]').val('1');
            $('select[name="profit_setting[service][operator]"]').val('*');
            $('input[name="profit_setting[service][value]"]').val('1');
            $('select[name="reseller_price_setting[service][operator]"]').val('*');
            $('input[name="reseller_price_setting[service][value]"]').val('1');
            $('select[name="reseller_profit_setting[service][operator]"]').val('*');
            $('input[name="reseller_profit_setting[service][value]"]').val('1');
            
            $('input[name="request[refill][action]"]').val('');
            $('input[name="request[refill][provider_id]"]').val('api_id');
            $('input[name="request[refill][provider_key]"]').val('api_key');
            $('input[name="request[refill][order_id]"]').val('id_order');
            $('input[name="response[refill][refill_id]"]').val('[\'data\'][\'id_refill\']');

            
            $('input[name="request[refill_status][action]"]').val('');
            $('input[name="request[refill_status][provider_id]"]').val('api_id');
            $('input[name="request[refill_status][provider_key]"]').val('api_key');
            $('input[name="request[refill_status][refill_id]"]').val('id_refill');
            $('input[name="response[refill_status][status]"]').val('[\'data\'][\'status\']');
            $('input[name="status_value[refill_status][pending]"]').val('Pending');
            $('input[name="status_value[refill_status][success]"]').val('Success');
            $('input[name="status_value[refill_status][processing]"]').val('Proses');
            $('input[name="status_value[refill_status][error]"]').val('Gagal');
        }
    });
</script><?php /**PATH /home/glor5228/public_html/resources/views/admin/service/provider/form.blade.php ENDPATH**/ ?>