    <div class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-sm-6">
                    <div class="img-profile ml-3">

                    </div>
                    <h1 class="m-0 text-dark"><?php echo (isset($user)) ? 'Add Invetation' : 'Add Invetation' ?>
                    </h1>

                </div><!-- /.col -->
                <div class="col-sm-6">
                    <ol class="breadcrumb float-sm-right">
                        <li class="breadcrumb-item"><a href="<?= base_url(); ?>/customer">Users</a></li>
                        <li class="breadcrumb-item active"><?php echo (isset($user)) ? 'Add Invetation' : 'Add Invetation' ?></li>
                    </ol>
                </div><!-- /.col -->
            </div><!-- /.row -->
        </div><!-- /.container-fluid -->
    </div>
    <form method="post" id="add_driver" class="card" action="<?php echo base_url() . "customer/addinvition"; ?>" enctype="multipart/form-data">
        <!-- Main content -->
        <section class="content">
            <div class="container-fluid">
                <div class="card-body">


                    <div class="row">
                        <input type="hidden" name="type" value="user"/>
                        <div class="col-sm-6 col-md-6">
                            <label class="form-label">Name<span class="form-required">*</span></label>
                            <div class="form-group">
                                <input type="text" name="name" id="name" class="form-control" placeholder="Name" value="<?=$user['name']?>">
                            </div>
                        </div>
                        <div class="col-sm-6 col-md-6">
                            <div class="form-group">
                                <label class="form-label">Email<span class="form-required">*</span></label>
                                <input type="email" name="email" value="<?=$user['email']?>" class="form-control" placeholder="Email">
                            </div>
                        </div>
                        <div class="col-sm-12 col-md-12">
                            <div class="form-group">
                                <label class="form-label">Teams<span class="form-required">*</span></label>
                                <select name="teamId" class="form-control" placeholder="Address">
                                <?php foreach($teams as $t=>$j){ ?>
                                    
                                            
                                     <option value="<?php echo $t; ?>"><?php echo $j['name']; ?></option>


                                    <?php } ?>  
                                 </select> 
                            </div>
                        </div>
                        <div class="col-sm-12 col-md-12">
                            <button type="submit" style="float:right;" class="btn btn-primary"> <?php echo (isset($user)) ? 'Update Invitation' : 'Add Invitation' ?></button>
                        </div>
                       
                    </div>

                </div>
        

            </div>
        </section>
        <!-- /.content -->


        <!-- /.content -->
    </form>
    </div>
