<?php $__env->startSection('content'); ?>
    <div class="row">
        <div class="col-12">
            <div class="multisteps-form mb-5">
                <!--form panels-->
                <div class="row">
                    <div class="col-12 col-lg-8 m-auto">
                        <form action="/save-investor" method="post" class="multisteps-form__form mb-8">
                            <!--single form panel-->
                            <?php if($errors->any()): ?>
                                <div class="alert bg-pink-light text-danger">
                                    <ul class="list-unstyled">
                                        <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <li><?php echo e($error); ?></li>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </ul>
                                </div>
                            <?php endif; ?>
                            <div class="card card-body p-3  js-active" data-animation="FadeIn">
                                <h5 class="font-weight-bolder mb-0">
                                    <?php echo e(__('Add New Investor')); ?>


                                </h5>

                                <div class="multisteps-form__content">
                                    <div class="row mt-3">
                                        <div class="col-12 col-sm-6">
                                            <label><?php echo e(__('First Name')); ?></label><small class="text-danger">*</small>
                                            <input name="first_name" class="multisteps-form__input form-control"
                                                   type="text"
                                                   <?php if(!empty($investor)): ?> value="<?php echo e($investor->first_name); ?>" <?php endif; ?> />
                                        </div>
                                        <div class="col-12 col-sm-6 mt-3 mt-sm-0">
                                            <label><?php echo e(__('Last Name')); ?></label><small class="text-danger">*</small>
                                            <input name="last_name" class="multisteps-form__input form-control"
                                                   type="text"
                                                   <?php if(!empty($investor)): ?> value="<?php echo e($investor->last_name); ?>" <?php endif; ?> />
                                        </div>
                                    </div>
                                    <div class="row mt-3">
                                        <div class="col-md-12">
                                            <label><?php echo e(__('Username/Email')); ?></label><small class="text-danger">*</small>
                                            <input name="email" class="multisteps-form__input form-control"
                                                   type="email"
                                                   value="<?php echo e($investor->email ?? old('email') ?? ''); ?>"/>
                                        </div>

                                    </div>

                                    <div class="row mt-3">
                                        <div class="col-12 col-sm-6 mt-3 mt-sm-0">
                                            <label><?php echo e(__('Phone Number')); ?></label>
                                            <input name="phone_number" class="multisteps-form__input form-control" value="<?php echo e($investor->phone_number ?? old('phone_number') ?? ''); ?>">
                                        </div>
                                        <div class="col-12 col-sm-6 mt-3 mt-sm-0">
                                            <label><?php echo e(__('Source')); ?></label>
                                            <input name="source" class="multisteps-form__input form-control" value="<?php echo e($investor->source ?? old('source') ?? ''); ?>"/>
                                        </div>


                                    </div>
                                    <div class="mb-1 mt-3">

                                        <label for="exampleFormControlInput1" class="form-label"><?php echo e(__('Select Product')); ?></label>
                                        <select class="form-select form-select-solid fw-bolder" id="contact"
                                                aria-label="Floating label select example" name="product_id">
                                            <option value="0"><?php echo e(__('None')); ?></option>
                                            <?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <option value="<?php echo e($product->id); ?>"
                                                        <?php if(!empty($investor)): ?>
                                                        <?php if($investor->product_id === $product->id): ?>
                                                        selected
                                                    <?php endif; ?>
                                                    <?php endif; ?>
                                                ><?php echo e($product->title); ?></option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        </select>
                                    </div>


                                    <div class="row mt-3">
                                        <div class="col-12 col-sm-6 mt-3 mt-sm-0">
                                            <label><?php echo e(__('Estimated Amount to be invested')); ?></label>
                                            <input name="amount" class=" form-control"
                                                   value="<?php echo e($investor->amount ?? old('amount') ?? ''); ?>" >
                                        </div>
                                        <div class="col-12 col-sm-6 mt-3 mt-sm-0">
                                            <div class="form-group">
                                                <label for="example-text-input" class="form-control-label">
                                                    <?php echo e(__('Status')); ?>

                                                </label><span class="text-danger">*</span>
                                                <select class="form-select" aria-label="Default select example" name="status">
                                                    <option value="Pending"
                                                            <?php if(($investor->status ?? null) === 'Pending'): ?> selected <?php endif; ?>><?php echo e(__('Pending')); ?></option>
                                                    <option value="Approved"
                                                            <?php if(($investor->status ?? null) === 'Approved'): ?> selected <?php endif; ?>><?php echo e(__('Approved')); ?></option>

                                                </select>
                                            </div>
                                        </div>


                                    </div>

                                    <div class="row">
                                        <div class="col-md-12">
                                            <label class="mt-4 text-sm mb-0"><?php echo e(__('Write a short Note')); ?></label>

                                            <div class="form-group">
                                                <textarea name="notes" class="form-control bg-yellow-light" rows="4" id="editor"><?php echo e($investor->notes ?? old('notes') ?? ''); ?></textarea>
                                            </div>
                                        </div>

                                    </div>


                                </div>
                            </div>


                            <div class=" mt-4 card card-body  p-3" data-animation="FadeIn">
                                <h5 class="font-weight-bolder"><?php echo e(__('Socials')); ?></h5>
                                <div class="multisteps-form__content">
                                    <div class="row mt-3">
                                        <div class="col-12">
                                                <span>
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor"
     stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-twitter"><path
        d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"></path></svg>
                                                 <label><?php echo e(__('Twitter Handle')); ?></label>

                                                </span>
                                            <input name="twitter" class="multisteps-form__input form-control"
                                                   type="text"
                                                   <?php if(!empty($investor)): ?> value="<?php echo e($investor->twitter); ?>" <?php endif; ?> />
                                        </div>
                                        <div class="col-12 mt-3">
                                                <span><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-facebook"><path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"></path></svg>
                                                     <label><?php echo e(__('Facebook Account')); ?></label>
                                                </span>

                                            <input name="facebook" class="multisteps-form__input form-control"
                                                   type="text"
                                                   <?php if(!empty($investor)): ?> value="<?php echo e($investor->facebook); ?>" <?php endif; ?> />
                                        </div>
                                        <div class="col-12 mt-3">
                                              <span>
                                                    <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-linkedin"><path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"></path><rect x="2" y="9" width="4" height="12"></rect><circle
                                                            cx="4" cy="4" r="2"></circle></svg>
                                                     <label><?php echo e(__('Linkedin Account')); ?></label>
                                               </span>

                                            <input name="linkedin" class="multisteps-form__input form-control"
                                                   <?php if(!empty($investor)): ?> value="<?php echo e($investor->linkedin); ?>" <?php endif; ?> />
                                        </div>
                                    </div>

                                </div>
                            </div>

                            <!--single form panel-->
                            <?php echo csrf_field(); ?>
                            <?php if(!empty($investor)): ?>
                                <input type="hidden" name="id" value="<?php echo e($investor->id); ?>">
                            <?php endif; ?>
                            <div class="button-row text-left mt-4 ">
                                <button class="btn bg-gradient-dark ms-auto mb-0 js-btn-next" type="submit"
                                        title="Next"><?php echo e(__('Submit')); ?></button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

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

    <script>

        $(function () {
            "use strict";


            flatpickr("#start_date", {

                dateFormat: "Y-m-d",
            });

            flatpickr("#end_date", {

                dateFormat: "Y-m-d",
            });


            tinymce.init({
                selector: '#editor',

                toolbar:'styleselect | forecolor | bold italic | alignleft aligncenter alignright alignjustify | outdent indent | link image | code | undo redo|numlist bullist',
                lists_indent_on_tab: false,
                branding: false,
                menubar: false,


            });

        });


    </script>

<?php $__env->stopSection(); ?>


<?php echo $__env->make('layouts.primary', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Users/sadia/Documents/valet/startup-kit/resources/views/investors/add.blade.php ENDPATH**/ ?>