<div class="sign-in">
    <div class="input-panel">
        <div class="title-panel">
            <h3><?=$title?></h3>
        </div>
        <!------------------------------Start  Form  ------------------------>
        <form method="post" action="<?=base_url('group/save')?>" enctype="multipart/form-data">
            <?php if($id): ?>
            <input type="hidden" name="id" value=<?=$id?>>
            <?php endif; ?>
            <div class="input-fields">
    <!--------------------- The First column ---------------->
                <div class="section-one">
                    <label for="name">Title</label>
                    <input type="text" required name="title" value="<?=(isset($data))?($data['title']):('')?>">
                    <label for="surname">Color</label>
                    <input type="text" name="color" value="<?=(isset($data))?($data['color']):('')?>">
                </div>
    <!--------------------- The second column ---------------->
                <div class="section-two">
                    <label for="select">No of Guests</label>
                    <input type="text" required name="nGuests" <?=(isset($data))?(' disabled '):('')?> value="<?=(isset($data))?($data['nGuests']):('')?>">
                    <?php if(isset($data)): ?>
                    No of guests can't be edited.
                    <?php endif; ?>
                </div>
            </div>          
            
            <div class="submit">
                
                <?php
                if(isset($id)):
                ?>
                <div class="edit remove">
                <a class="removeBtn" onclick="return confirm('Are you sure you want to remove?')" href="<?=base_url('group/remove/' . $id)?>">Remove</a>
                </div>
                <?php
                endif;
                ?>                
                <input type="submit" name="submit">
                
                
                </div>
        </form>
        <!------------------------------End  Form  ------------------------>
    </div>
</div>
