<div class="content-header">
    <div class="container-fluid">
        <div class="row column_title">
            <div class="col-md-12">
                <div class="page_title">
                    <h2><?php echo (isset($podcast)) ? 'Edit Packages' : 'Add Packages' ?></h2>
                </div>
            </div>
        </div>

    </div><!-- /.container-fluid -->
</div>
<!-- Main content -->
<section class="content">
    <div class="container-fluid">
        <form method="post" enctype="multipart/form-data" id="podcast_add" class="card" action="<?php echo (isset($podcast)) ? base_url('dashboard/updatepackage/' . $id) : base_url('dashboard/savepackage')  ?>">
            <div class="card-body">
                <div class="row">

                    <div class="col-sm-6 col-md-6">
                        <div class="form-group">

                            <label>Package Name <span class="form-required">*</span></label>
                    <input type="text" class="form-control" value="<?php echo (isset($podcast)) ? $podcast['package'] : '' ?>" required="true" id="package" name="package" placeholder="Package Name">
                        </div>
                    </div>

                    <div class="col-sm-6 col-md-6">
                        <div class="form-group">

                             <label>Package Price<span class="form-required">*</span></label>
                    <input type="number" class="form-control" value="<?php echo (isset($podcast)) ? $podcast['price'] : '' ?>" required="true" id="price" name="price" placeholder="Package Price">
                        </div>
                    </div>
                    <div class="col-sm-6 col-md-6">
                        <div class="form-group">

                             <label>Duration In Month<span class="form-required">*</span></label>
                    <input type="number" class="form-control" value="<?php echo (isset($podcast)) ? $podcast['duration'] : '' ?>" required="true" id="price" name="duration" placeholder="Duration in Month">
                        </div>
                    </div>
                    <div class="col-sm-6 col-md-6">
                        <div class="form-group">

                         <label>Package Status</label>
                   <select class="form-control" name="isActive">
                    <option <?php if($podcast['isActive']==true){echo 'selected';} ?>  value="true">Active</option>
                    <option <?php if($podcast['isActive']==false){echo 'selected';} ?> value="false">Deactive</option>
                       

                   </select>

                        </div>
                    </div>



                </div>


                <div class="modal-footer">
                    <button type="submit" class="btn btn-primary"> <?php echo (isset($podcast)) ? 'Update Packages' : 'Add Packages' ?></button>
                </div>
            </div>
        </form>
    </div>
</section>
<!-- /.content -->