<tr data-index="<?php echo e($index); ?>">
    <td>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('residential_complex_create')): ?>
            <?php echo Form::text('terms_of_payments['.$index.'][header]', old('terms_of_payments['.$index.'][header]', isset($field) ? $field->header: ''), ['class' => 'form-control']); ?>

        <?php else: ?>
            <?php echo Form::text('terms_of_payments['.$index.'][header]', old('terms_of_payments['.$index.'][header]', isset($field) ? $field->header: ''), ['class' => 'form-control', 'readonly' => 'readonly']); ?>

        <?php endif; ?>
    </td>

    <td>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('residential_complex_create')): ?>
            <?php echo Form::text('terms_of_payments['.$index.'][content_option_one]', old('terms_of_payments['.$index.'][content_option_one]', isset($field) ? $field->content_option_one: ''), ['class' => 'form-control']); ?>

        <?php else: ?>
            <?php echo Form::text('terms_of_payments['.$index.'][content_option_one]', old('terms_of_payments['.$index.'][content_option_one]', isset($field) ? $field->content_option_one: ''), ['class' => 'form-control', 'readonly' => 'readonly']); ?>

        <?php endif; ?>
    </td>

    <td>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('residential_complex_create')): ?>
            <?php echo Form::text('terms_of_payments['.$index.'][content_option_two]', old('terms_of_payments['.$index.'][content_option_two]', isset($field) ? $field->content_option_two: ''), ['class' => 'form-control']); ?>

        <?php else: ?>
            <?php echo Form::text('terms_of_payments['.$index.'][content_option_two]', old('terms_of_payments['.$index.'][content_option_two]', isset($field) ? $field->content_option_two: ''), ['class' => 'form-control', 'readonly' => 'readonly']); ?>

        <?php endif; ?>
    </td>

    <td>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('residential_complex_create')): ?>
            <?php echo Form::text('terms_of_payments['.$index.'][content_option_three]', old('terms_of_payments['.$index.'][content_option_three]', isset($field) ? $field->content_option_three: ''), ['class' => 'form-control']); ?>

        <?php else: ?>
            <?php echo Form::text('terms_of_payments['.$index.'][content_option_three]', old('terms_of_payments['.$index.'][content_option_three]', isset($field) ? $field->content_option_three: ''), ['class' => 'form-control', 'readonly' => 'readonly']); ?>

        <?php endif; ?>
    </td>

    <td  class="">
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('residential_complex_create')): ?>


            <input type="color" id="head" name="terms_of_payments[<?php echo e($index); ?>][color_of_elements]" class="form-control" value="<?php echo e(isset($field) ? $field->color_of_elements: ''); ?>">

        <?php else: ?>
            <input type="color" id="head" name="terms_of_payments[<?php echo e($index); ?>][color_of_elements]" class="form-control readonly" value="<?php echo e(isset($field) ? $field->color_of_elements: ''); ?>">


        <?php endif; ?>
    </td>









    <!-- Додане поле для чекбокса "appeal" -->
    <td class="center">
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('residential_complex_create')): ?>


            <?php echo Form::checkbox('terms_of_payments['.$index.'][appeal]', 1, isset($field) ? $field->appeal : false, ['class' => 'form-check-input center']); ?>

        <?php else: ?>
            <?php echo Form::checkbox('terms_of_payments['.$index.'][appeal]', 1, isset($field) ? $field->appeal : false, ['class' => 'form-check-input center', 'readonly' => 'readonly']); ?>


        <?php endif; ?>
    </td>
    <!-- Кінець доданого поля -->

    <td class="">
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('residential_complex_create')): ?>
            <a href="#" class="remove btn btn-xs btn-danger"><?php echo app('translator')->get('quickadmin.qa_delete'); ?></a>
        <?php endif; ?>
    </td>
</tr>
<?php /**PATH /var/www/html/vdoma/resources/views/admin/residential_complexes/terms_of_payment_row.blade.php ENDPATH**/ ?>