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

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

    </div>

    <div class="card-body">
        <form method="POST" action="<?php echo e(route("admin.contact-contacts.update", [$contactContact->id])); ?>" enctype="multipart/form-data">
            <?php echo method_field('PUT'); ?>
            <?php echo csrf_field(); ?>
            <div class="form-group">
                <label class="required" for="company_id"><?php echo e(trans('cruds.contactContact.fields.company')); ?></label>
                <select class="form-control select2 <?php echo e($errors->has('company') ? 'is-invalid' : ''); ?>" name="company_id" id="company_id" required>
                    <?php $__currentLoopData = $companies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $id => $entry): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <option value="<?php echo e($id); ?>" <?php echo e((old('company_id') ? old('company_id') : $contactContact->company->id ?? '') == $id ? 'selected' : ''); ?>><?php echo e($entry); ?></option>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </select>
                <?php if($errors->has('company')): ?>
                    <div class="invalid-feedback">
                        <?php echo e($errors->first('company')); ?>

                    </div>
                <?php endif; ?>
                <span class="help-block"><?php echo e(trans('cruds.contactContact.fields.company_helper')); ?></span>
            </div>
            <div class="form-group">
                <label class="required" for="location"><?php echo e(trans('cruds.contactContact.fields.location')); ?></label>
                <input class="form-control <?php echo e($errors->has('location') ? 'is-invalid' : ''); ?>" type="text" name="location" id="location" value="<?php echo e(old('location', $contactContact->location)); ?>" required>
                <?php if($errors->has('location')): ?>
                    <div class="invalid-feedback">
                        <?php echo e($errors->first('location')); ?>

                    </div>
                <?php endif; ?>
                <span class="help-block"><?php echo e(trans('cruds.contactContact.fields.location_helper')); ?></span>
            </div>
            <div class="form-group">
                <label for="unit_name"><?php echo e(trans('cruds.contactContact.fields.unit_name')); ?></label>
                <input class="form-control <?php echo e($errors->has('unit_name') ? 'is-invalid' : ''); ?>" type="text" name="unit_name" id="unit_name" value="<?php echo e(old('unit_name', $contactContact->unit_name)); ?>">
                <?php if($errors->has('unit_name')): ?>
                    <div class="invalid-feedback">
                        <?php echo e($errors->first('unit_name')); ?>

                    </div>
                <?php endif; ?>
                <span class="help-block"><?php echo e(trans('cruds.contactContact.fields.unit_name_helper')); ?></span>
            </div>
            <div class="form-group">
                <label for="contact_first_name"><?php echo e(trans('cruds.contactContact.fields.contact_first_name')); ?></label>
                <input class="form-control <?php echo e($errors->has('contact_first_name') ? 'is-invalid' : ''); ?>" type="text" name="contact_first_name" id="contact_first_name" value="<?php echo e(old('contact_first_name', $contactContact->contact_first_name)); ?>">
                <?php if($errors->has('contact_first_name')): ?>
                    <div class="invalid-feedback">
                        <?php echo e($errors->first('contact_first_name')); ?>

                    </div>
                <?php endif; ?>
                <span class="help-block"><?php echo e(trans('cruds.contactContact.fields.contact_first_name_helper')); ?></span>
            </div>
            <div class="form-group">
                <label for="contact_last_name"><?php echo e(trans('cruds.contactContact.fields.contact_last_name')); ?></label>
                <input class="form-control <?php echo e($errors->has('contact_last_name') ? 'is-invalid' : ''); ?>" type="text" name="contact_last_name" id="contact_last_name" value="<?php echo e(old('contact_last_name', $contactContact->contact_last_name)); ?>">
                <?php if($errors->has('contact_last_name')): ?>
                    <div class="invalid-feedback">
                        <?php echo e($errors->first('contact_last_name')); ?>

                    </div>
                <?php endif; ?>
                <span class="help-block"><?php echo e(trans('cruds.contactContact.fields.contact_last_name_helper')); ?></span>
            </div>
            <div class="form-group">
                <label for="contact_phone_1"><?php echo e(trans('cruds.contactContact.fields.contact_phone_1')); ?></label>
                <input class="form-control <?php echo e($errors->has('contact_phone_1') ? 'is-invalid' : ''); ?>" type="text" name="contact_phone_1" id="contact_phone_1" value="<?php echo e(old('contact_phone_1', $contactContact->contact_phone_1)); ?>">
                <?php if($errors->has('contact_phone_1')): ?>
                    <div class="invalid-feedback">
                        <?php echo e($errors->first('contact_phone_1')); ?>

                    </div>
                <?php endif; ?>
                <span class="help-block"><?php echo e(trans('cruds.contactContact.fields.contact_phone_1_helper')); ?></span>
            </div>
            <div class="form-group">
                <label class="required" for="contact_phone_2"><?php echo e(trans('cruds.contactContact.fields.contact_phone_2')); ?></label>
                <input class="form-control <?php echo e($errors->has('contact_phone_2') ? 'is-invalid' : ''); ?>" type="text" name="contact_phone_2" id="contact_phone_2" value="<?php echo e(old('contact_phone_2', $contactContact->contact_phone_2)); ?>" required>
                <?php if($errors->has('contact_phone_2')): ?>
                    <div class="invalid-feedback">
                        <?php echo e($errors->first('contact_phone_2')); ?>

                    </div>
                <?php endif; ?>
                <span class="help-block"><?php echo e(trans('cruds.contactContact.fields.contact_phone_2_helper')); ?></span>
            </div>
            <div class="form-group">
                <label for="contact_email"><?php echo e(trans('cruds.contactContact.fields.contact_email')); ?></label>
                <input class="form-control <?php echo e($errors->has('contact_email') ? 'is-invalid' : ''); ?>" type="text" name="contact_email" id="contact_email" value="<?php echo e(old('contact_email', $contactContact->contact_email)); ?>">
                <?php if($errors->has('contact_email')): ?>
                    <div class="invalid-feedback">
                        <?php echo e($errors->first('contact_email')); ?>

                    </div>
                <?php endif; ?>
                <span class="help-block"><?php echo e(trans('cruds.contactContact.fields.contact_email_helper')); ?></span>
            </div>
            <div class="form-group">
                <label for="district"><?php echo e(trans('cruds.contactContact.fields.district')); ?></label>
                <input class="form-control <?php echo e($errors->has('district') ? 'is-invalid' : ''); ?>" type="text" name="district" id="district" value="<?php echo e(old('district', $contactContact->district)); ?>">
                <?php if($errors->has('district')): ?>
                    <div class="invalid-feedback">
                        <?php echo e($errors->first('district')); ?>

                    </div>
                <?php endif; ?>
                <span class="help-block"><?php echo e(trans('cruds.contactContact.fields.district_helper')); ?></span>
            </div>
            <div class="form-group">
                <label for="pincode"><?php echo e(trans('cruds.contactContact.fields.pincode')); ?></label>
                <input class="form-control <?php echo e($errors->has('pincode') ? 'is-invalid' : ''); ?>" type="text" name="pincode" id="pincode" value="<?php echo e(old('pincode', $contactContact->pincode)); ?>">
                <?php if($errors->has('pincode')): ?>
                    <div class="invalid-feedback">
                        <?php echo e($errors->first('pincode')); ?>

                    </div>
                <?php endif; ?>
                <span class="help-block"><?php echo e(trans('cruds.contactContact.fields.pincode_helper')); ?></span>
            </div>
            <div class="form-group">
                <label for="pan_number"><?php echo e(trans('cruds.contactContact.fields.pan_number')); ?></label>
                <input class="form-control <?php echo e($errors->has('pan_number') ? 'is-invalid' : ''); ?>" type="text" name="pan_number" id="pan_number" value="<?php echo e(old('pan_number', $contactContact->pan_number)); ?>">
                <?php if($errors->has('pan_number')): ?>
                    <div class="invalid-feedback">
                        <?php echo e($errors->first('pan_number')); ?>

                    </div>
                <?php endif; ?>
                <span class="help-block"><?php echo e(trans('cruds.contactContact.fields.pan_number_helper')); ?></span>
            </div>
            <div class="form-group">
                <label for="gstn_number"><?php echo e(trans('cruds.contactContact.fields.gstn_number')); ?></label>
                <input class="form-control <?php echo e($errors->has('gstn_number') ? 'is-invalid' : ''); ?>" type="text" name="gstn_number" id="gstn_number" value="<?php echo e(old('gstn_number', $contactContact->gstn_number)); ?>">
                <?php if($errors->has('gstn_number')): ?>
                    <div class="invalid-feedback">
                        <?php echo e($errors->first('gstn_number')); ?>

                    </div>
                <?php endif; ?>
                <span class="help-block"><?php echo e(trans('cruds.contactContact.fields.gstn_number_helper')); ?></span>
            </div>
            <div class="form-group">
                <label for="department"><?php echo e(trans('cruds.contactContact.fields.department')); ?></label>
                <input class="form-control <?php echo e($errors->has('department') ? 'is-invalid' : ''); ?>" type="text" name="department" id="department" value="<?php echo e(old('department', $contactContact->department)); ?>">
                <?php if($errors->has('department')): ?>
                    <div class="invalid-feedback">
                        <?php echo e($errors->first('department')); ?>

                    </div>
                <?php endif; ?>
                <span class="help-block"><?php echo e(trans('cruds.contactContact.fields.department_helper')); ?></span>
            </div>
            <div class="form-group">
                <label for="contact_address"><?php echo e(trans('cruds.contactContact.fields.contact_address')); ?></label>
                <input class="form-control <?php echo e($errors->has('contact_address') ? 'is-invalid' : ''); ?>" type="text" name="contact_address" id="contact_address" value="<?php echo e(old('contact_address', $contactContact->contact_address)); ?>">
                <?php if($errors->has('contact_address')): ?>
                    <div class="invalid-feedback">
                        <?php echo e($errors->first('contact_address')); ?>

                    </div>
                <?php endif; ?>
                <span class="help-block"><?php echo e(trans('cruds.contactContact.fields.contact_address_helper')); ?></span>
            </div>
            <div class="row">
                <div class="col-md-6 form-group">
                    <label for="amc_engineer"><?php echo e(trans('cruds.contactContact.fields.amc_engineer')); ?></label>
                    <select class="form-control select2 <?php echo e($errors->has('amc_engineer') ? 'is-invalid' : ''); ?>" name="amc_engineer" id="amc_engineer">
                        <?php $__currentLoopData = $amc_engineer; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $id => $entry): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e($id); ?>" <?php echo e((old('day') ? old('day') : $id ?? '') == $contactContact->amc_engineer ? 'selected' : ''); ?>><?php echo e($entry); ?></option>

                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </select>
                    <?php if($errors->has('amc_engineer')): ?>
                        <div class="invalid-feedback">
                            <?php echo e($errors->first('amc_engineer')); ?>

                        </div>
                    <?php endif; ?>
                    <span class="help-block"><?php echo e(trans('cruds.contactContact.fields.amc_engineer_helper')); ?></span>
                </div>
                <div class="col-md-6 form-group">
                    <label for="day"><?php echo e(trans('cruds.contactContact.fields.day')); ?></label>
                    <select class="form-control select2 <?php echo e($errors->has('day') ? 'is-invalid' : ''); ?>" name="day" id="day">
                        <?php $__currentLoopData = $day; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $id => $entry): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                            <option value="<?php echo e($id); ?>" <?php echo e((old('day') ? old('day') : $id ?? '') == ($contactContact->day - 1) ? 'selected' : ''); ?>><?php echo e($entry); ?></option>

                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </select>
                    <?php if($errors->has('day')): ?>
                        <div class="invalid-feedback">
                            <?php echo e($errors->first('day')); ?>

                        </div>
                    <?php endif; ?>
                </div>
                </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/contactContacts/edit.blade.php ENDPATH**/ ?>