<?php $__env->startSection('title', 'Teams'); ?>
<?php $__env->startPush('css'); ?>
<?php $__env->stopPush(); ?>

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

    <!-- Main Content -->
    <div class="main-content">
        <section class="section">
            <div class="col-12 section-header">
                <div class="col-6">
                    <h1> Edit </h1>
                </div>

            </div>
            <?php if($errors->any()): ?>
                <div class="col-sm-12">
                    <div class="alert  alert-warning alert-dismissible fade show" role="alert">
                        <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <span>
                                <p><?php echo e($error); ?></p>
                            </span>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                            <span aria-hidden="true">&times;</span>
                        </button>
                    </div>
                </div>
            <?php endif; ?>

            <?php echo $__env->make('flash-message', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

            <div class="section-body row">
                <div class="col-lg-8">
                    <div class="card">



                        <div class="col-12 card-body">

                            <form method="POST" action="<?php echo e(route('team.update', $id)); ?>" id="editForm"
                                enctype="multipart/form-data">
                                <?php echo e(method_field('PATCH')); ?>

                                <?php echo e(csrf_field()); ?>


                                <!-- Bootstrap Tabs -->
                                <ul class="nav nav-tabs" id="languageTabs">
                                    <li class="nav-item">
                                        <a class="nav-link active" id="english-tab-link" data-toggle="tab"
                                            href="#english-tab">English</a>
                                    </li>
                                    
                                </ul>

                                <!-- Tab Content -->
                                <div class="tab-content mt-3">
                                    <!-- English Tab -->
                                    <div class="tab-pane fade show active" id="english-tab">
                                        <div class="form-group">
                                            <label>Name<code></code></label>
                                            <input type="text" name="name" class="form-control form-control-lg"
                                                value="<?php echo e($data->name); ?>">
                                        </div>

                                        <div class="form-group">
                                            <label>Designation<code></code></label>
                                            <input type="text" name="designation" class="form-control form-control-lg"
                                                value="<?php echo e($data->designation); ?>">
                                        </div>

                                        <div class="form-group">
                                            <label>Linkedin URL<code></code></label>
                                            <input type="text" name="linkedin_url" class="form-control form-control-lg"
                                                value="<?php echo e($data->linkedin_url); ?>">
                                        </div>

                                        <div class="form-group">
                                            <label>Facebook URL<code></code></label>
                                            <input type="text" name="facebook_url" class="form-control form-control-lg"
                                                value="<?php echo e($data->facebook_url); ?>">
                                        </div>


                                    </div>
                                </div>

                                <!-- Image Upload -->
                                <div class="form-group">
                                    <label>Image</label><br>
                                    <?php if($data->image != null): ?>
                                        <img src="<?php echo e(asset('images/team/' . $data->image)); ?>" width="400px"
                                            height="200px" alt="user photo" /><br>
                                    <?php endif; ?>
                                    <input type="file" name="image" class="form-control form-control-lg" />
                                </div>


                                <!-- Submit Button -->
                                <div class="card-footer text-right">
                                    <button class="btn btn-primary mr-1" type="submit">Update</button>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>

            </div>
        </section>


        <!-- End -->
    </div>



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

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

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

<?php echo $__env->make('layouts.app_admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\xampp\htdocs\hats-off-moving\resources\views/team/edit.blade.php ENDPATH**/ ?>