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

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

    </div>

    <div class="card-body">
        <form method="POST" action="<?php echo e(route("admin.fusion-types.update", [$fusionType->id])); ?>" enctype="multipart/form-data">
            <?php echo method_field('PUT'); ?>
            <?php echo csrf_field(); ?>
            <div class="form-group">
                <label class="required" for="name"><?php echo e(trans('cruds.fusionType.fields.name')); ?></label>
                <input class="form-control <?php echo e($errors->has('name') ? 'is-invalid' : ''); ?>" type="text" name="name" id="name" value="<?php echo e(old('name', $fusionType->name)); ?>" required>
                <?php if($errors->has('name')): ?>
                    <div class="invalid-feedback">
                        <?php echo e($errors->first('name')); ?>

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

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

                    </div>
                <?php endif; ?>
                <span class="help-block"><?php echo e(trans('cruds.fusionType.fields.parent_name_helper')); ?></span>
            </div>
            <div class="form-group">
                <button class="btn btn-danger" type="submit">
                    <?php echo e(trans('global.save')); ?>

                </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/sfm.fusionengg.in/resources/views/admin/fusionTypes/edit.blade.php ENDPATH**/ ?>