<?php foreach ($individual as $row): ?>
<div class="content gusers">
    <div class="container-fluid">
        <div class="row">	                    
            <div class="col-md-offset-1 col-md-10">
                <div class="card">
                    <div class="card-header" data-background-color="purple">
                        <h4 class="title"><i class="material-icons">person_add</i> <?php echo $this->lang->line('dash_updatesermon_panel_title'); ?></h4>
                        <p class="category">(*) <?php echo $this->lang->line('dash_gpanel_mfar'); ?></p>
                    </div>
                    <div class="card-content">
                        <form id="updateSermonForm" class="form-horizontal" action="<?php echo base_url(); ?>dashboard/sermon/update" method="post" enctype="multipart/form-data">
                            <div class="row">
                                <div class="col-md-offset-0 col-md-12">

                                    <div class="imageWrapper" style="background-image: url(<?php echo base_url(); ?>images/upload.png);">
                                        <img id="image" src="">
                                    </div>

                                </div>
                                <div class="col-md-12">
                                    <div class="form-group label-floating">													
                                        <p class="image_select_text"><i class="material-icons">add_a_photo</i> <?php echo $this->lang->line('dash_gpanel_spp'); ?></p>
                                        <input type="file" onchange="sermonFeaturePhoto()" name="profileimage" id="profileimage">
                                        <input type="hidden" name="x" id="x">
                                        <input type="hidden" name="y" id="y">
                                        <input type="hidden" name="width" id="width">
                                        <input type="hidden" name="height" id="height">
                                    </div>
                                </div>
                            </div>
                            
                            <input type="hidden" name="sermonid" value="<?php echo $row->sermonid; ?>">

                            <div class="row">
                                <div class="col-md-12">
                                    <div class="form-group label-floating is-empty">
                                        <label class="control-label"><?php echo $this->lang->line('dash_gpanel_title'); ?> (*)</label>
                                        <input type="text" name="sermontitle" class="form-control" value="<?php echo $row->sermontitle;?>" required>
                                        <span class="material-input"></span></div>
                                </div>
                                <div class="col-md-4">
                                    <div class="form-group label-floating is-empty">
                                        <label class="control-label"><?php echo $this->lang->line('dash_gpanel_date'); ?> (*)</label>
                                        <input type="text" name="sermondate" class="datepicker form-control" value="<?php echo $row->sermondate;?>" required>
                                        <span class="material-input"></span></div>
                                </div>
                                <div class="col-md-4">
                                    <div class="form-group label-floating is-empty">
                                        <label class="control-label"><?php echo $this->lang->line('dash_gpanel_time'); ?> (*)</label>
                                        <input type="text" name="sermontime" class="form-control" value="<?php echo $row->sermontime;?>" required>
                                        <span class="material-input"></span></div>
                                </div>
                                <div class="col-md-4">
                                    <div class="form-group label-floating is-empty">
                                        <label class="control-label"><?php echo $this->lang->line('dash_gpanel_author'); ?> (*)</label>
                                        <input type="text" name="sermonauthor" class="form-control" value="<?php echo $row->sermonauthor;?>" required>
                                        <span class="material-input"></span></div>
                                </div>

                                

                            </div>
                            
                            
                            <div class="row">
                                
                                <div class="col-md-4">
                                    <div class="form-group label-floating is-empty">
                                        <label class="control-label"><?php echo $this->lang->line('dash_gpanel_location'); ?></label>
                                        <input type="text" name="sermonlocation" class="form-control" value="<?php echo $row->sermonlocation;?>">
                                        <span class="material-input"></span></div>
                                </div>
                                
                                <div class="col-md-4">
                                    <div class="form-group label-floating is-empty">
                                        <label class="control-label"><?php echo $this->lang->line('dash_gpanel_youtube'); ?></label>
                                        <input type="text" name="sermonyoutube" class="form-control" value="<?php echo $row->sermonyoutube;?>">
                                        <span class="material-input"></span></div>
                                </div>

                                <div class="col-md-4">
                                    <div class="form-group label-floating is-empty">
                                        <label class="control-label"><?php echo $this->lang->line('dash_gpanel_soundcloud'); ?></label>
                                        <input type="text" name="sermonsoundcloud" class="form-control" value="<?php echo $row->sermonsoundcloud;?>">
                                        <span class="material-input"></span></div>
                                </div>

                            </div>

                            <div class="row">
                                <div class="col-md-12">
                                    <div class="form-group label-floating is-empty">
                                        <label class="control-label"><?php echo $this->lang->line('dash_gpanel_description'); ?></label>
                                        <textarea rows="5" type="text" id="sermondescription" name="sermondescription" class="form-control"><?php echo $row->sermondescription;?></textarea>
                                        <span class="material-input"></span></div>
                                </div>
                            </div>

                            <button id="updateSermonSubmit" type="submit" class="btn btn-primary pull-right"><i class="material-icons">person_add</i> <?php echo $this->lang->line('dash_updatesermon_panel_title'); ?></button>
                            <div class="clearfix"></div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        <?php endforeach; ?>