

<?php $__env->startSection('title', getSetting('APPLICATION_NAME') . ' | ' . $page); ?>

<?php $__env->startSection('profile-content'); ?>
    <?php echo $__env->make('include.message', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <div class="card">
        <div class="card-body">
            <form id="editContact" action="<?php echo e(route('profile.editContact', $contact->id)); ?>" method="post">
                <?php echo csrf_field(); ?>
                <div class="row">
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label><?php echo e(__('Name')); ?></label>
                            <input type="text" name="name" placeholder="<?php echo e(__('Name')); ?>"
                                value="<?php echo e($contact->name); ?>" class="form-control<?php echo e($errors->has('name') ? ' is-invalid' : ''); ?>" maxlength="20" autofocus required>
                            <?php if($errors->has('name')): ?>
                                <span class="invalid-feedback" role="alert">
                                    <strong><?php echo e($errors->first('name')); ?></strong>
                                </span>
                            <?php endif; ?>
                        </div>
                    </div>
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label><?php echo e(__('Email')); ?></label>
                            <input type="email" name="email" placeholder="<?php echo e(__('Email')); ?>"
                                value="<?php echo e($contact->email); ?>" class="form-control<?php echo e($errors->has('email') ? ' is-invalid' : ''); ?>" maxlength="50" required>
                            <?php if($errors->has('email')): ?>
                                <span class="invalid-feedback" role="alert">
                                    <strong><?php echo e($errors->first('email')); ?></strong>
                                </span>
                            <?php endif; ?>
                        </div>
                    </div>
                </div>

                <button type="submit" id="save" class="btn btn-primary"><?php echo e(__('Save')); ?></button>
                <a href="<?php echo e(route('profile.contacts')); ?>"><button type="button"
                        class="btn btn-default"><?php echo e(__('Back')); ?></button></a>
            </form>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('profile.index', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/originsuiteai/webinar.originsuiteai.com/resources/views/profile/contacts/edit.blade.php ENDPATH**/ ?>