<?php $__env->startSection('content'); ?>
    <div class="page-header">
        <h4 class="page-title"><?php echo e(__('Add Organizer')); ?></h4>
        <ul class="breadcrumbs">
            <li class="nav-home">
                <a href="<?php echo e(route('admin.dashboard')); ?>">
                    <i class="flaticon-home"></i>
                </a>
            </li>
            <li class="separator">
                <i class="flaticon-right-arrow"></i>
            </li>
            <li class="nav-item">
                <a href="#"><?php echo e(__('Organizers Management')); ?></a>
            </li>
            <li class="separator">
                <i class="flaticon-right-arrow"></i>
            </li>
            <li class="nav-item">
                <a href="#"><?php echo e(__('Add Organizer')); ?></a>
            </li>
        </ul>
    </div>

    <div class="row">
        <div class="col-md-12">
            <div class="card">
                <div class="card-header">
                    <div class="row">
                        <div class="col-lg-12">
                            <div class="card-title"><?php echo e(__('Add Organizer')); ?></div>
                        </div>
                    </div>
                </div>

                <div class="card-body">
                    <div class="row">
                        <div class="col-lg-8 mx-auto">
                            <div class="alert alert-danger pb-1 dis-none" id="eventErrors">
                                <button type="button" class="close" data-dismiss="alert">×</button>
                                <ul></ul>
                            </div>

                            <form id="eventForm" action="<?php echo e(route('admin.organizer_management.save-organizer')); ?>"
                                method="post">
                                <?php echo csrf_field(); ?>
                                <div class="row">
                                    <div class="col-lg-12">
                                        <div class="form-group">
                                            <label for=""><?php echo e(__('Photo') . '*'); ?></label>
                                            <br>
                                            <div class="thumb-preview">
                                                <img src="<?php echo e(asset('assets/admin/img/noimage.jpg')); ?>" alt="..."
                                                    class="uploaded-img">
                                            </div>
                                            <div class="mt-3">
                                                <div role="button" class="btn btn-primary btn-sm upload-btn">
                                                    <?php echo e(__('Choose Photo')); ?>

                                                    <input type="file" class="img-input" name="photo">
                                                </div>
                                                <p class="mt-1 mb-0 text-warning em"><?php echo e(__('Image Size 300x300')); ?></p>
                                                <p id="editErr_photo" class="mt-1 mb-0 text-danger em"></p>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="col-lg-6">
                                        <div class="form-group">
                                            <label><?php echo e(__('Email') . ' *'); ?></label>
                                            <input type="text" value="" class="form-control" name="email"
                                                placeholder="<?php echo e(__('Enter Email')); ?>">
                                            <p id="editErr_email" class="mt-1 mb-0 text-danger em"></p>
                                        </div>
                                    </div>
                                    <div class="col-lg-6">
                                        <div class="form-group">
                                            <label><?php echo e(__('Phone')); ?></label>
                                            <input type="text" value="" class="form-control" name="phone"
                                                placeholder="<?php echo e(__('Enter Phone')); ?>">
                                            <p id="editErr_phone" class="mt-1 mb-0 text-danger em"></p>
                                        </div>
                                    </div>

                                    <div class="col-lg-6">
                                        <div class="form-group">
                                            <label><?php echo e(__('Username') . ' *'); ?></label>
                                            <input type="text" value="" class="form-control" name="username"
                                                placeholder="<?php echo e(__('Enter Username')); ?>">
                                            <p id="editErr_username" class="mt-1 mb-0 text-danger em"></p>
                                        </div>
                                    </div>
                                    <div class="col-lg-6">
                                        <div class="form-group">
                                            <label><?php echo e(__('Password')); ?></label>
                                            <input type="password" value="" class="form-control" name="password"
                                                placeholder="<?php echo e(__('Enter Password')); ?> ">
                                            <p id="editErr_password" class="mt-1 mb-0 text-danger em"></p>
                                        </div>
                                    </div>

                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <label><?php echo e(__('Facebook')); ?></label>
                                            <input type="text" class="form-control" name="facebook" value="">
                                        </div>
                                    </div>

                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <label><?php echo e(__('Twitter')); ?></label>
                                            <input type="text" class="form-control" name="twitter" value="">
                                        </div>
                                    </div>

                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <label><?php echo e(__('Linkedin')); ?></label>
                                            <input type="text" class="form-control" name="linkedin" value="">
                                        </div>
                                    </div>

                                    <div class="col-lg-12">
                                        <div id="accordion" class="mt-3">
                                            <?php $__currentLoopData = $languages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <div class="version">
                                                    <div class="version-header" id="heading<?php echo e($language->id); ?>">
                                                        <h5 class="mb-0">
                                                            <button type="button" class="btn btn-link"
                                                                data-toggle="collapse"
                                                                data-target="#collapse<?php echo e($language->id); ?>"
                                                                aria-expanded="<?php echo e($language->is_default == 1 ? 'true' : 'false'); ?>"
                                                                aria-controls="collapse<?php echo e($language->id); ?>">
                                                                <?php echo e($language->name . __(' Language')); ?>

                                                                <?php echo e($language->is_default == 1 ? '(' . __('Default') . ')' : ''); ?>

                                                            </button>
                                                        </h5>
                                                    </div>


                                                    <div id="collapse<?php echo e($language->id); ?>"
                                                        class="collapse <?php echo e($language->is_default == 1 ? 'show' : ''); ?>"
                                                        aria-labelledby="heading<?php echo e($language->id); ?>"
                                                        data-parent="#accordion">
                                                        <div class="version-body">
                                                            <div class="row">
                                                                <div class="col-lg-4">
                                                                    <div
                                                                        class="form-group <?php echo e($language->direction == 1 ? 'rtl text-right' : ''); ?>">
                                                                        <label><?php echo e(__('Name') . '*'); ?></label>
                                                                        <input type="text" class="form-control"
                                                                            name="<?php echo e($language->code); ?>_name"
                                                                            placeholder="Enter Your Full Name"
                                                                            value="">
                                                                        <?php if($errors->has("$language->code" . '_name')): ?>
                                                                            <p class="mt-2 mb-0 text-danger">
                                                                                <?php echo e($errors->first("$language->code" . '_name')); ?>

                                                                            </p>
                                                                        <?php endif; ?>

                                                                        <p id="editErr_<?php echo e($language->code); ?>_name"
                                                                            class="mt-1 mb-0 text-danger em"></p>
                                                                    </div>
                                                                </div>

                                                                <div class="col-lg-4">
                                                                    <div class="form-group">
                                                                        <label><?php echo e(__('Designation')); ?></label>
                                                                        <input type="text" class="form-control"
                                                                            name="<?php echo e($language->code); ?>_designation"
                                                                            value="">

                                                                    </div>
                                                                </div>

                                                                <div class="col-lg-4">
                                                                    <div class="form-group">
                                                                        <label><?php echo e(__('Country')); ?></label>
                                                                        <input type="text" class="form-control"
                                                                            name="<?php echo e($language->code); ?>_country"
                                                                            value="">
                                                                    </div>
                                                                </div>
                                                                <div class="col-lg-4">
                                                                    <div class="form-group">
                                                                        <label><?php echo e(__('City')); ?></label>
                                                                        <input type="text" class="form-control"
                                                                            name="<?php echo e($language->code); ?>_city"
                                                                            value="">
                                                                    </div>
                                                                </div>
                                                                <div class="col-lg-4">
                                                                    <div class="form-group">
                                                                        <label><?php echo e(__('State')); ?></label>
                                                                        <input type="text" class="form-control"
                                                                            name="<?php echo e($language->code); ?>_state"
                                                                            value="">
                                                                    </div>
                                                                </div>
                                                                <div class="col-lg-4">
                                                                    <div class="form-group">
                                                                        <label><?php echo e(__('Zip Code')); ?></label>
                                                                        <input type="text" class="form-control"
                                                                            name="<?php echo e($language->code); ?>_zip_code"
                                                                            value="">
                                                                    </div>
                                                                </div>
                                                                <div class="col-lg-12">
                                                                    <div class="form-group">
                                                                        <label><?php echo e(__('Address')); ?></label>
                                                                        <textarea name="<?php echo e($language->code); ?>_address" class="form-control"></textarea>
                                                                    </div>
                                                                </div>
                                                                <div class="col-lg-12">
                                                                    <div class="form-group">
                                                                        <label><?php echo e(__('Details')); ?></label>
                                                                        <textarea name="<?php echo e($language->code); ?>_details" rows="5" class="form-control"></textarea>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="row">
                                                                <div class="col">
                                                                    <?php $currLang = $language; ?>

                                                                    <?php $__currentLoopData = $languages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                                        <?php if($language->id == $currLang->id) continue; ?>

                                                                        <div class="form-check py-0">
                                                                            <label class="form-check-label">
                                                                                <input class="form-check-input"
                                                                                    type="checkbox"
                                                                                    onchange="cloneInput('collapse<?php echo e($currLang->id); ?>', 'collapse<?php echo e($language->id); ?>', event)">
                                                                                <span
                                                                                    class="form-check-sign"><?php echo e(__('Clone for')); ?>

                                                                                    <strong
                                                                                        class="text-capitalize text-secondary"><?php echo e($language->name); ?></strong>
                                                                                    <?php echo e(__('language')); ?></span>
                                                                            </label>
                                                                        </div>
                                                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        </div>
                                    </div>

                                </div>
                            </form>
                        </div>
                    </div>
                </div>

                <div class="card-footer">
                    <div class="row">
                        <div class="col-12 text-center">
                            <button type="submit" id="EventSubmit" class="btn btn-success">
                                <?php echo e(__('Submit')); ?>

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

<?php echo $__env->make('backend.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/ysakkarj/events.theend.africa/resources/views/backend/end-user/organizer/create.blade.php ENDPATH**/ ?>