<?php $__env->startSection('content'); ?>

<div class="card">
    <div class="card-header">
        <?php echo e(trans('global.edit')); ?> <?php echo e(trans('cruds.commissionData.title_singular')); ?>

    </div>

    <div class="card-body">
        <form method="POST" action="<?php echo e(route("admin.commission-datas.update", [$commissionData->id])); ?>" enctype="multipart/form-data">
            <?php echo method_field('PUT'); ?>
            <?php echo csrf_field(); ?>
            <input type="hidden" name="commission_id" id="commission_id" value=<?php echo e($commissionData->commission_id); ?>>
            <input type="hidden" name="commission_category_name_id" id="commission_category_name_id" value="6">


<!-- Stack the columns on mobile by making one full-width and the other half-width -->

  <!-- Columns are always 50% wide, on mobile and desktop -->

            <div class="container">
            <?php $__currentLoopData = $commission_types; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $id => $entry): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div class="row">
                <div class="col-12">
                    <h3><?php echo e($entry); ?></h3>
                    <input type="hidden" name="commission_type_id" id="commission_type_id" value="<?php echo e($id); ?>">
                    <input type="hidden" name="commission_type_id_<?php echo e($id); ?>" id="commission_type_id_<?php echo e($id); ?>" value="<?php echo e($id); ?>">
                </div>
            </div>
            <?php if($id < 582 && $id < 602): ?>
                <div class="row">
                <div class="col-12 col-md-3" style="background-color: #ad8e8e;">
                <div class="form-group" style="background-color: #ad8e8e;margin-top:10px;">
                    <input class="form-control <?php echo e($errors->has('commission_value') ? 'is-invalid' : ''); ?>" type="text" name="commission_value_<?php echo e($id); ?>" id="commission_value_<?php echo e($id); ?>"
                    <?php $__currentLoopData = $existing_val; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php if($key['commission_type_id'] == $id): ?>
                            value="<?php echo e($key['commission_value']); ?>"
                            <?php endif; ?>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    >
                </div>
                </div>
                <div class="col-12 col-md-3" style="background-color: #ded1d1;">
                <div class="form-group" style="background-color: #ded1d1;margin-top:10px;">
                    <input class="form-control <?php echo e($errors->has('commission_value_text_1') ? 'is-invalid' : ''); ?>" type="text" name="commission_value_text_1_<?php echo e($id); ?>" id="commission_value_text_1_<?php echo e($id); ?>"
                    <?php $__currentLoopData = $existing_val; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php if($key['commission_type_id'] == $id): ?>
                            value="<?php echo e($key['commission_value_text_1']); ?>"

                            <?php endif; ?>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    >
                </div>
                </div>
                <div class="col-12 col-md-3" style="background-color: #eeabab;">
                <div class="form-group" style="background-color: #eeabab;margin-top:10px;">
                    <input class="form-control <?php echo e($errors->has('commission_value_text_2') ? 'is-invalid' : ''); ?>" type="text" name="commission_value_text_2_<?php echo e($id); ?>" id="commission_value_text_2_<?php echo e($id); ?>"

                    <?php $__currentLoopData = $existing_val; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php if($key['commission_type_id'] == $id): ?>
                            value="<?php echo e($key['commission_value_text_2']); ?>"

                        <?php endif; ?>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    >
                </div>
                </div>
                <div class="col-12 col-md-3" style="background-color: #473a3a;">
                <div class="form-group" style="background-color: #473a3a;margin-top:10px;">
                    <input class="form-control <?php echo e($errors->has('commission_value_text_3') ? 'is-invalid' : ''); ?>" type="text" name="commission_value_text_3_<?php echo e($id); ?>" id="commission_value_text_3_<?php echo e($id); ?>"

                    <?php $__currentLoopData = $existing_val; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php if($key['commission_type_id'] == $id): ?>
                            value="<?php echo e($key['commission_value_text_3']); ?>"

                        <?php endif; ?>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    >
                </div>
            </div>
                </div>
                <?php endif; ?>

                <?php if($id < 608 && $id > 601): ?>
                <div class="row">
                <div class="col-12 col-md-3" style="background-color: #ad8e8e;">
                <div class="form-group" style="background-color: #ad8e8e;margin-top:10px;">
                    <input class="form-control <?php echo e($errors->has('commission_value') ? 'is-invalid' : ''); ?>" type="text" name="commission_value_<?php echo e($id); ?>" id="commission_value_<?php echo e($id); ?>"
                    <?php $__currentLoopData = $existing_val; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php if($key['commission_type_id'] == $id): ?>
                            value="<?php echo e($key['commission_value']); ?>"
                            <?php endif; ?>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    >
                </div>
                </div>
                <div class="col-12 col-md-3" style="background-color: #ded1d1;">
                <div class="form-group" style="background-color: #ded1d1;margin-top:10px;">
                    <input class="form-control <?php echo e($errors->has('commission_value_text_1') ? 'is-invalid' : ''); ?>" type="text" name="commission_value_text_1_<?php echo e($id); ?>" id="commission_value_text_1_<?php echo e($id); ?>"
                    <?php $__currentLoopData = $existing_val; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php if($key['commission_type_id'] == $id): ?>
                            value="<?php echo e($key['commission_value_text_1']); ?>"

                            <?php endif; ?>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    >
                </div>
                </div>
                <div class="col-12 col-md-3" style="background-color: #eeabab;">
                <div class="form-group" style="background-color: #eeabab;margin-top:10px;">
                    <input class="form-control <?php echo e($errors->has('commission_value_text_2') ? 'is-invalid' : ''); ?>" type="text" name="commission_value_text_2_<?php echo e($id); ?>" id="commission_value_text_2_<?php echo e($id); ?>"

                    <?php $__currentLoopData = $existing_val; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php if($key['commission_type_id'] == $id): ?>
                            value="<?php echo e($key['commission_value_text_2']); ?>"

                        <?php endif; ?>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    >
                </div>
                </div>
                <div class="col-12 col-md-3" style="background-color: #473a3a;">
                <div class="form-group" style="background-color: #473a3a;margin-top:10px;">
                    <input class="form-control <?php echo e($errors->has('commission_value_text_3') ? 'is-invalid' : ''); ?>" type="text" name="commission_value_text_3_<?php echo e($id); ?>" id="commission_value_text_3_<?php echo e($id); ?>"

                    <?php $__currentLoopData = $existing_val; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php if($key['commission_type_id'] == $id): ?>
                            value="<?php echo e($key['commission_value_text_3']); ?>"

                        <?php endif; ?>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    >
                </div>
            </div>
                </div>
                <?php endif; ?>

                <!-- Radio Buttons -->
                <?php if($id > 582 && $id < 602 ): ?>
                            <br>
                            Yes<input style="top: 0.8rem;scale: 2.4;margin-left: 1.5rem;margin-right: 2.5rem;" type="radio" name="commission_value_<?php echo e($id); ?>"  value="Yes"
                            <?php $__currentLoopData = $existing_val; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <?php if($key['commission_type_id'] == $id && $key['commission_value'] == 'Yes'): ?>
                                    checked
                                <?php endif; ?>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            >
                            No <input style="top: 0.8rem;scale: 2.4;margin-left: 1.5rem;margin-right: 2.5rem;"  type="radio" name="commission_value_<?php echo e($id); ?>"  value="No"
                            <?php $__currentLoopData = $existing_val; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <?php if($key['commission_type_id'] == $id && $key['commission_value'] == 'No'): ?>
                                    checked
                                <?php endif; ?>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            >
                            Ok <input style="top: 0.8rem;scale: 2.4;margin-left: 1.5rem;margin-right: 2.5rem;"  type="radio" name="commission_value_<?php echo e($id); ?>"  value="Ok"
                            <?php $__currentLoopData = $existing_val; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <?php if($key['commission_type_id'] == $id && $key['commission_value'] == 'Ok'): ?>
                                    checked
                                <?php endif; ?>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            >

                <?php endif; ?>

                <!-- Radio Buttons -->
                <hr>

        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </div>

        <!--

            <div class="form-group">
                <label for="commission_value_fusion_types_1_id"><?php echo e(trans('cruds.commissionData.fields.commission_value_fusion_types_1')); ?></label>
                <select class="form-control select2 <?php echo e($errors->has('commission_value_fusion_types_1') ? 'is-invalid' : ''); ?>" name="commission_value_fusion_types_1_id" id="commission_value_fusion_types_1_id">
                    <?php $__currentLoopData = $commission_value_fusion_types_1s; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $id => $entry): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <option value="<?php echo e($id); ?>" <?php echo e((old('commission_value_fusion_types_1_id') ? old('commission_value_fusion_types_1_id') : $commissionData->commission_value_fusion_types_1->id ?? '') == $id ? 'selected' : ''); ?>><?php echo e($entry); ?></option>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </select>
                <?php if($errors->has('commission_value_fusion_types_1')): ?>
                    <div class="invalid-feedback">
                        <?php echo e($errors->first('commission_value_fusion_types_1')); ?>

                    </div>
                <?php endif; ?>
                <span class="help-block"><?php echo e(trans('cruds.commissionData.fields.commission_value_fusion_types_1_helper')); ?></span>
            </div>
            <div class="form-group">
                <label for="commission_value_fusion_types_2_id"><?php echo e(trans('cruds.commissionData.fields.commission_value_fusion_types_2')); ?></label>
                <select class="form-control select2 <?php echo e($errors->has('commission_value_fusion_types_2') ? 'is-invalid' : ''); ?>" name="commission_value_fusion_types_2_id" id="commission_value_fusion_types_2_id">
                    <?php $__currentLoopData = $commission_value_fusion_types_2s; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $id => $entry): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <option value="<?php echo e($id); ?>" <?php echo e((old('commission_value_fusion_types_2_id') ? old('commission_value_fusion_types_2_id') : $commissionData->commission_value_fusion_types_2->id ?? '') == $id ? 'selected' : ''); ?>><?php echo e($entry); ?></option>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </select>
                <?php if($errors->has('commission_value_fusion_types_2')): ?>
                    <div class="invalid-feedback">
                        <?php echo e($errors->first('commission_value_fusion_types_2')); ?>

                    </div>
                <?php endif; ?>
                <span class="help-block"><?php echo e(trans('cruds.commissionData.fields.commission_value_fusion_types_2_helper')); ?></span>
            </div>
            <div class="form-group">
                <label for="team_id"><?php echo e(trans('cruds.commissionData.fields.team')); ?></label>
                <select class="form-control select2 <?php echo e($errors->has('team') ? 'is-invalid' : ''); ?>" name="team_id" id="team_id">
                    <?php $__currentLoopData = $teams; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $id => $entry): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <option value="<?php echo e($id); ?>" <?php echo e((old('team_id') ? old('team_id') : $commissionData->team->id ?? '') == $id ? 'selected' : ''); ?>><?php echo e($entry); ?></option>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </select>
                <?php if($errors->has('team')): ?>
                    <div class="invalid-feedback">
                        <?php echo e($errors->first('team')); ?>

                    </div>
                <?php endif; ?>
                <span class="help-block"><?php echo e(trans('cruds.commissionData.fields.team_helper')); ?></span>
            </div>

        -->
        <br><br><br>
            <div class="form-group">
                <button class="btn btn-danger btn-lg btn-block" type="submit">
                    <?php echo e(trans('global.save')); ?>

                </button>
                <a href="/admin/assets/<?php echo e($commissionData->commission_id); ?>">
                    <button type="button" class="btn btn-primary btn-lg btn-block">Back to Commissioning</button>

                </a>
                </button>
            </div>


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

<?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/newrhytha2/public_html/devsfm.fusionengg.in/resources/views/admin/commissionDatas/edit.blade.php ENDPATH**/ ?>