<?php $__env->startSection('content'); ?>
    <div
        class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
        <h1 class="h2">Entegrasyon Düzenle</h1>
    </div>

    <div class="row">
        <?php if($errors->any()): ?>
            <div class="alert alert-danger" role="alert">
                <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <b><?php echo e($error); ?></b><br>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
        <?php endif; ?>

        <form method="POST" action="<?php echo e(route('integration-edit',$projectSettings->id)); ?>">
            <?php echo csrf_field(); ?>
            <div class="row">
                <div class="col-6 bg-light p-2 border border-light rounded">
                    <div class="form-group col-12">
                        <label for="project_name">Proje Adı</label>
                        <input type="text" class="form-control" id="project_name" name="project_name"
                               placeholder="Proje Adı" value="<?php echo e($projectSettings->project_name); ?>">
                    </div>

                    <div class="form-group">
                        <label for="database_host">Database Host</label>
                        <input type="text" class="form-control" id="database_host" name="database_host"
                               placeholder="Opencart Database Host (Varsayılan: localhost)"
                               value="<?php echo e($projectSettings->database_host); ?>">
                    </div>

                    <div class="form-group">
                        <label for="database_port">Database Port</label>
                        <input type="text" class="form-control" id="database_port" name="database_port"
                               placeholder="Opencart Database Port (Varsayılan: 3306)"
                               value="<?php echo e($projectSettings->database_port); ?>">
                    </div>

                    <div class="form-group">
                        <label for="database_name">Database Name</label>
                        <input type="text" class="form-control" id="database_name" name="database_name"
                               placeholder="Opencart Database Name" value="<?php echo e($projectSettings->database_name); ?>">
                    </div>

                    <div class="form-group">
                        <label for="database_username">Database Username</label>
                        <input type="text" class="form-control" id="database_username" name="database_username"
                               placeholder="Opencart Database Username" value="<?php echo e($projectSettings->database_username); ?>">
                    </div>

                    <div class="form-group">
                        <label for="database_password">Database Password</label>
                        <input type="password" class="form-control" id="database_password" name="database_password"
                               placeholder="Opencart Database Password" value="<?php echo e($projectSettings->database_password); ?>">
                    </div>
                </div>
                <div class="col-6 bg-secondary p-2 border border-secondary rounded">
                    <div class="form-group">
                        <label for="nebim_url">Nebim Url</label>
                        <input type="text" class="form-control" id="nebim_url" name="nebim_url" placeholder="Nebim Url"
                               value="<?php echo e($projectSettings->nebim_url); ?>">
                    </div>

                    <div class="form-group">
                        <label for="nebim_database_name">Nebim Database Name</label>
                        <input type="text" class="form-control" id="nebim_database_name" name="nebim_database_name"
                               placeholder="Nebim Database Name" value="<?php echo e($projectSettings->nebim_database_name); ?>">
                    </div>

                    <div class="form-group">
                        <label for="nebim_user_group_code">Nebim User Group Code</label>
                        <input type="text" class="form-control" id="nebim_user_group_code" name="nebim_user_group_code"
                               placeholder="Nebim User Group Code" value="<?php echo e($projectSettings->nebim_user_group_code); ?>">
                    </div>

                    <div class="form-group">
                        <label for="nebim_username">Nebim Username</label>
                        <input type="text" class="form-control" id="nebim_username" name="nebim_username"
                               placeholder="Nebim Username" value="<?php echo e($projectSettings->nebim_username); ?>">
                    </div>
                    <div class="form-group">
                        <label for="nebim_password">Nebim Password</label>
                        <input type="password" class="form-control" id="nebim_password" name="nebim_password"
                               placeholder="Nebim Password" value="<?php echo e($projectSettings->nebim_password); ?>">
                    </div>

                    <div class="form-group">
                        <label for="OfficeCode">Nebim OfficeCode</label>
                        <input type="text" class="form-control" id="OfficeCode" name="OfficeCode"
                               placeholder="OfficeCode" value="<?php echo e($projectSettings->OfficeCode); ?>">
                    </div>

                    <div class="form-group">
                        <label for="StoreCode">Nebim StoreCode</label>
                        <input type="text" class="form-control" id="StoreCode" name="StoreCode"
                               placeholder="StoreCode" value="<?php echo e($projectSettings->StoreCode); ?>">
                    </div>

                    <div class="form-group">
                        <label for="WareHouseCode">Nebim WareHouseCode</label>
                        <input type="text" class="form-control" id="WareHouseCode" name="WareHouseCode"
                               placeholder="WareHouseCode" value="<?php echo e($projectSettings->WareHouseCode); ?>">
                    </div>


                    <div class="form-group">
                        <label for="PaymentCode">Nebim PaymentCode</label>
                        <input type="text" class="form-control" id="PaymentCode" name="PaymentCode"
                               placeholder="PaymentCode" value="<?php echo e($projectSettings->PaymentCode); ?>">
                    </div>

                    <div class="form-group">
                        <label for="order_status_id">Aktarılacak Sipariş Durum No</label>
                        <input type="text" class="form-control" id="order_status_id" name="order_status_id"
                               placeholder="order_status_id" value="<?php echo e($projectSettings->order_status_id); ?>">
                    </div>

                    <div class="form-group">
                        <label for="order_schedule">Sipariş Aktarım Süresi</label>
                        <select class="form-control" name="order_schedule">
                            <option
                                value="* * * * *" <?php echo e((!$projectSettings->order_schedule || $projectSettings->order_schedule =='* * * * *') ? 'selected':''); ?>>
                                Her Dakika aktar
                            </option>
                            <option
                                value="*/5 * * * *" <?php echo e(($projectSettings->order_schedule =='*/5 * * * *') ? 'selected':''); ?>>
                                5 Dakika bir kere
                            </option>
                            <option value="*/15 * * * *" <?php echo e(($projectSettings->order_schedule =='*/15 * * * *') ? 'selected':''); ?>>15 Dakika bir kere</option>
                            <option value="*/30 * * * *" <?php echo e(($projectSettings->order_schedule =='*/30 * * * *') ? 'selected':''); ?>>30 Dakika bir kere</option>
                            <option value="0 * * * *" <?php echo e(($projectSettings->order_schedule =='0 * * * *') ? 'selected':''); ?>>Saatte bir kere</option>
                            <option value="0 */6 * * *" <?php echo e(($projectSettings->order_schedule =='0 */6 * * *') ? 'selected':''); ?>>6 Saatte bir kere</option>
                            <option value="0 */12 * * *" <?php echo e(($projectSettings->order_schedule =='0 */12 * * *') ? 'selected':''); ?>>12 Saatte bir kere</option>
                            <option value="0 0 * * *" <?php echo e(($projectSettings->order_schedule =='0 0 * * *') ? 'selected':''); ?>>Günde bir kere</option>
                        </select>
                    </div>

                    <div class="form-group">
                        <label for="product_schedule">Ürün Aktarım Süresi</label>
                        <select class="form-control" name="product_schedule">
                            <option
                                value="* * * * *" <?php echo e((!$projectSettings->product_schedule || $projectSettings->product_schedule =='* * * * *') ? 'selected':''); ?>>
                                Her Dakika aktar
                            </option>
                            <option
                                value="*/5 * * * *" <?php echo e(($projectSettings->product_schedule =='*/5 * * * *') ? 'selected':''); ?>>
                                5 Dakika bir kere
                            </option>
                            <option value="*/15 * * * *" <?php echo e(($projectSettings->product_schedule =='*/15 * * * *') ? 'selected':''); ?>>15 Dakika bir kere</option>
                            <option value="*/30 * * * *" <?php echo e(($projectSettings->product_schedule =='*/30 * * * *') ? 'selected':''); ?>>30 Dakika bir kere</option>
                            <option value="0 * * * *" <?php echo e(($projectSettings->product_schedule =='0 * * * *') ? 'selected':''); ?>>Saatte bir kere</option>
                            <option value="0 */6 * * *" <?php echo e(($projectSettings->product_schedule =='0 */6 * * *') ? 'selected':''); ?>>6 Saatte bir kere</option>
                            <option value="0 */12 * * *" <?php echo e(($projectSettings->product_schedule =='0 */12 * * *') ? 'selected':''); ?>>12 Saatte bir kere</option>
                            <option value="0 0 * * *" <?php echo e(($projectSettings->product_schedule =='0 0 * * *') ? 'selected':''); ?>>Günde bir kere</option>
                        </select>
                    </div>


                    <div class="form-group">
                        <label for="stock_schedule">Stok / Fiyat Aktarım Süresi</label>
                        <select class="form-control" name="stock_schedule">
                            <option
                                value="* * * * *" <?php echo e((!$projectSettings->stock_schedule || $projectSettings->stock_schedule =='* * * * *') ? 'selected':''); ?>>
                                Her Dakika aktar
                            </option>
                            <option
                                value="*/5 * * * *" <?php echo e(($projectSettings->stock_schedule =='*/5 * * * *') ? 'selected':''); ?>>
                                5 Dakika bir kere
                            </option>
                            <option value="*/15 * * * *" <?php echo e(($projectSettings->stock_schedule =='*/15 * * * *') ? 'selected':''); ?>>15 Dakika bir kere</option>
                            <option value="*/30 * * * *" <?php echo e(($projectSettings->stock_schedule =='*/30 * * * *') ? 'selected':''); ?>>30 Dakika bir kere</option>
                            <option value="0 * * * *" <?php echo e(($projectSettings->stock_schedule =='0 * * * *') ? 'selected':''); ?>>Saatte bir kere</option>
                            <option value="0 */6 * * *" <?php echo e(($projectSettings->stock_schedule =='0 */6 * * *') ? 'selected':''); ?>>6 Saatte bir kere</option>
                            <option value="0 */12 * * *" <?php echo e(($projectSettings->stock_schedule =='0 */12 * * *') ? 'selected':''); ?>>12 Saatte bir kere</option>
                            <option value="0 0 * * *" <?php echo e(($projectSettings->stock_schedule =='0 0 * * *') ? 'selected':''); ?>>Günde bir kere</option>
                        </select>
                    </div>
                </div>
            </div>
            <button type="submit" class="mt-4 btn btn-primary">Güncelle</button>
        </form>

    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/rstudors/public_html/nebim-entegrasyon/resources/views/integration-edit.blade.php ENDPATH**/ ?>