<div class="modal" id="admincontrol">
    <div class="modal-dialog modal-md">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4>Admin Control</h4>
            </div>
            <div class="modal-body">
                <div id="adminbody"></div>
            </div>
            <div class="modal-footer"></div>
        </div>
    </div>
</div>

<div class="modal" id="gamedetail">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4>Prediction Details</h4>
            </div>
            <div class="modal-body">
                <div id="ebody"></div>
            </div>
            <div class="modal-footer"></div>
        </div>
    </div>
</div>

<div class="modal" id="blogdetail">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4>Blog Details</h4>
            </div>
            <div class="modal-body">
                <div id="blogbody"></div>
            </div>
            <div class="modal-footer"></div>
        </div>
    </div>
</div>

<div class="modal" id="updategame">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4><span class="fa fa-cogs"></span> Update Prediction</h4>
            </div>
            <div class="modal-body">
                <div id="ubody"></div>
            </div>
            <div class="modal-footer"></div>
        </div>
    </div>
</div>

<div class="modal" id="updateuserinfo">
    <div class="modal-dialog modal-md">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4><span class="fa fa-cogs"></span> Update User Information</h4>
            </div>
            <div class="modal-body">
                <div id="userbody"></div>
            </div>
            <div class="modal-footer"></div>
        </div>
    </div>
</div>

<div class="modal" id="userdetails">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4><span class="fa fa-user"></span> USER INFORMATION</h4>
            </div>
            <div class="modal-body">
                <div id="userinfobody"></div>
            </div>
            <div class="modal-footer"></div>
        </div>
    </div>
</div>

<div class="modal" id="upgradeuser">
    <div class="modal-dialog modal-md">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4><span class="fa fa-credit-card"></span> Upgrade User's Account</h4>
            </div>
            <div class="modal-body">
                <div id="userupbody"></div>
            </div>
            <div class="modal-footer"></div>
        </div>
    </div>
</div>

<div class="modal" id="updateblog">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4><span class="fa fa-cogs"></span> Update News</h4>
            </div>
            <div class="modal-body">
                <div id="blbody"></div>
            </div>
            <div class="modal-footer"></div>
        </div>
    </div>
</div>

<div class="modal" id="updateads">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4><span class="fa fa-cogs"></span> Update Advert</h4>
            </div>
            <div class="modal-body">
                <div id="adsbody"></div>
            </div>
            <div class="modal-footer"></div>
        </div>
    </div>
</div>

<div class="modal" id="usersetting">
    <div class="modal-dialog modal-md">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4><span class="fa fa-cogs"></span> Account Settings</h4>
            </div>
            <div class="modal-body">
                <div id="abody"></div>
            </div>
            <div class="modal-footer"></div>
        </div>
    </div>
</div>

<div class="modal" id="subscribedMembers">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4><span class="fa fa-users"></span> Subscribed Members</h4>
            </div>
            <div class="modal-body">
                <center>
                    <h4 class="text-danger">PS: This action is irreversible!</h4>
                </center>
                <form action="<?php echo e(route('/bonusSubscribed')); ?>" method="POST" class="bonusSubForm">
                    <div class="form-group col-sm-8">
                        <input type="number"  name="days" required class="form-control" placeholder="Number of Days">
                    </div>

                    <div class="form-group col-sm-4">
                        <h3>Days</h3>
                    </div>
                    <?php echo e(csrf_field()); ?>

                    <div class="form-group">
                        <div class="SubStatus"></div><br>
                        <center><button class="btn btn-md btn-success subBtn" type="submit" id="subBtn">Continue</button></center>
                    </div>
                </form>
            </div>
            <div class="modal-footer"></div>
        </div>
    </div>
</div>

<div class="modal" id="lapsedMembers">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4><span class="fa fa-users"></span> Lapsed Members</h4>
            </div>
            <div class="modal-body">
                <center>
                    <h4 class="text-danger">PS: This action is irreversible!</h4>
                </center>
                <form action="<?php echo e(route('/bonusLapsed')); ?>" method="POST" class="bonusSubFormLapsed">
                    <div class="form-group col-sm-8">
                        <input type="number"  name="days" required class="form-control" placeholder="Number of Days">
                    </div>

                    <div class="form-group col-sm-4">
                        <h3>Days</h3>
                    </div>
                    <?php echo e(csrf_field()); ?>

                    <div class="form-group">
                        <div class="SubStatus"></div><br>
                        <center><button class="btn btn-md btn-success subBtn" type="submit" id="subBtn">Continue</button></center>
                    </div>
                </form>
            </div>
            <div class="modal-footer"></div>
        </div>
    </div>
</div>

<div class="modal" id="blogdelete">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4><span class="fa fa-trash"></span> Delete Blog News</h4>
            </div>
            <div class="modal-body">
                <center>
                    <h4>Confirm Deletion</h4>
                </center>
                <form action="#" method="POST" id="blogdeleteform">
                    <div class="form-group">
                        <input type="hidden"  id="bid" name="blogid" class="form-control" value="">
                    </div>

                    <div class="form-group">
                        <input type="password" id="delpass" name="password" class="form-control" placeholder="PROVIDE OPERATION KEY HERE" required>
                    </div>
                    <?php echo e(csrf_field()); ?>

                    <div class="form-group">
                        <div id="blogdeletestatusbox"></div><br>
                        <center><button class="btn btn-sm btn-success" type="submit" id="blogsubmitdelete">Delete</button></center>
                    </div>
                </form>
            </div>
            <div class="modal-footer"></div>
        </div>
    </div>
</div>

<div class="modal" id="userdelete">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4><span class="fa fa-trash"></span> DELETE USER</h4>
            </div>
            <div class="modal-body">
                <center>
                    <h4>Confirm Deletion</h4>
                </center>
                <form action="#" method="POST" id="userdeleteform">
                    <div class="form-group">
                        <input type="hidden"  id="usid" name="usid" class="form-control" value="">
                    </div>

                    <div class="form-group">
                        <input type="password" id="delpass" name="password" class="form-control" placeholder="PROVIDE OPERATION KEY HERE" required>
                    </div>
                    <?php echo e(csrf_field()); ?>

                    <div class="form-group">
                        <div id="userdeletestatusbox"></div><br>
                        <center><button class="btn btn-sm btn-success" type="submit" id="usersubmitdelete">Delete</button></center>
                    </div>
                </form>
            </div>
            <div class="modal-footer"></div>
        </div>
    </div>
</div>

<div class="modal" id="addresult">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4><span class="fa fa-cogs"></span> Add Match Result</h4>
            </div>
            <div class="modal-body">
                <div id="rbody"></div>
            </div>
            <div class="modal-footer"></div>
        </div>
    </div>
</div>

<div class="modal" id="marktest">
    <div class="modal-dialog modal-md">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4><span class="fa fa-check-square-o"></span> Mark As Testimonial</h4>
            </div>
            <div class="modal-body">
                <div id="tbody"></div>
            </div>
            <div class="modal-footer"></div>
        </div>
    </div>
</div>

<div class="modal" id="addft">
    <div class="modal-dialog modal-md">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4><span class="fa fa-plus-square"></span> Add Other Recommendations</h4>
            </div>
            <div class="modal-body">
                <div id="ftbody"></div>
            </div>
            <div class="modal-footer"></div>
        </div>
    </div>
</div>

<?php /*ADMIN SETTINGS*/ ?>
<div class="modal" id="admin">
    <div class="modal-dialog modal-md">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4><span class="fa fa-cogs"></span> Admin Settings</h4>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-md-7">
                        <form action="#" method="POST" id="adminsetting">
                            <div class="form-group">
                                <input type="text" name="adminname" class="form-control" value="<?php echo e($admin->name); ?>" placeholder="Admin Name" required>
                            </div>

                            <div class="form-group">
                                <input type="text" name="adminusername" class="form-control" value="<?php echo e($admin->username); ?>" placeholder="Admin Username" required>
                            </div>

                            <div class="form-group">
                                <input type="email" name="adminemail" class="form-control" value="<?php echo e($admin->email); ?>" placeholder="Login Email" required>
                            </div>

                            <div class="form-group">
                                <input type="password" name="adminopkey" class="form-control" value="<?php echo e($admin->operation_key); ?>" placeholder="Operation Key" maxlength="5" required>
                            </div>
                            <h4>Change Password</h4>
                            <div class="divider"></div>
                            <div class="form-group">
                                <input type="password" name="adminoldpassword" class="form-control"  placeholder="Existing Password">
                            </div>

                            <div class="form-group">
                                <input type="password" name="adminnewpassword" class="form-control"  placeholder="Define New Password">
                            </div>

                            <input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
                            <div class="form-group">
                                <div id="adminstatus"></div><br>
                                <button class="btn btn-md btn-success" type="submit" id="adminsettingbtn">Save Changes</button>
                            </div>

                        </form>
                    </div>
                    <div class="col-md-5">
                        <h5>CHANGE DEFAULT PICTURE</h5>
                        <hr>
                        <form action="<?php echo e(url('/dpupload')); ?>" method="POST" id="uploadfor" enctype="multipart/form-data">
                            <div class="col-sm-12">
                                <div class="input-field col-md-12">
                                    <div class="fileupload fileupload-new" data-provides="fileupload">
                                        <div class="fileupload-new thumbnail" style="width: 160px; height: 150px;"><?php if($admin->dp!=NULL): ?><img src="<?php echo e(asset('images')); ?>/<?php echo e($admin->dp); ?>" alt="" /><?php else: ?><img src="<?php echo e(asset('images/user.png')); ?>" alt="" /><?php endif; ?></div>
                                        <div class="fileupload-preview fileupload-exists thumbnail" style="max-width: 160px; max-height: 150px; line-height: 20px;"></div>
                                        <div>
                <span class="btn btn-sm btn-file btn-default"><span class="fileupload-new">SELECT DP</span><span class="fileupload-exists">Change</span>
                <input type="file" name="file" required/></span>
                                            <a href="#" class="btn btn-sm btn-danger fileupload-exists" data-dismiss="fileupload">Remove</a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
                            <div id="uploadstatus"></div><br>
                            <button class="btn btn-sm btn-success" id="uploadbtn">UPLOAD</button>
                        </form>

                    </div>
                </div>
            </div>
            <div class="modal-footer"></div>
        </div>
    </div>
</div>

<?php /*NEW ADMIN REGISTRATION*/ ?>
<div class="modal" id="newadmin">
    <div class="modal-dialog modal-md">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4><span class="fa fa-cogs"></span> Admin Registration</h4>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-md-10 col-md-offset-1">

                        <form action="#" method="POST" id="newadminform">
                            <div class="form-group">
                                <input type="text" name="adminname" class="form-control"  placeholder="Admin Name" required>
                            </div>

                            <div class="form-group">
                                <input type="text" name="adminusername" class="form-control"  placeholder="Admin Username" required>
                            </div>

                            <div class="form-group">
                                <input type="email" name="adminemail" class="form-control" placeholder="Login Email" required>
                            </div>

                            <div class="form-group">
                                <select name="category" class="form-control" required>
                                    <option value="">Admin Role</option>
                                    <option value="Super">Super</option>
                                    <option value="General">General</option>
                                    <option value="Predictor">Predictor</option>
                                    <option value="Blogger">Blogger</option>
                                </select>
                            </div>

                            <div class="form-group">
                                <input type="password" name="adminopkey" class="form-control" placeholder="Operation Key" required maxlength="5">
                            </div>
                            <h4>Define Password</h4>
                            <div class="divider"></div>
                            <div class="form-group">
                                <input type="password" name="password" class="form-control"  placeholder="Password">
                            </div>

                            <div class="form-group">
                                <input type="password" name="repassword" class="form-control"  placeholder="Confirm Password">
                            </div>

                            <input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
                            <div class="form-group">
                                <div id="newadminstatus"></div><br>
                                <button class="btn btn-md btn-success" type="submit" id="newadminbtn">Save Changes</button>
                            </div>

                        </form>
                    </div>
                </div>
            </div>
            <div class="modal-footer"></div>
        </div>
    </div>
</div>

<?php /*TEXT ROTATOR MODAL*/ ?>
<div class="modal" id="textRotator">
    <div class="modal-dialog modal-md">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4><span class="fa fa-plus-square"></span> TEXT SLIDER</h4>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-sm-12">
                        <div class="col-sm-12">
                            <span class="pull-right">
                                <a href="#" data-target="#newTextRotator" data-toggle="modal">
                                    <button class="btn btn-md btn-success">ADD NEW</button></a>
                            </span>
                        </div>
                        <div id="sliderBody" class="col-sm-12">
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer"></div>
        </div>
    </div>
</div>

<?php /*TEXT ROTATOR MODAL*/ ?>
<div class="modal" id="newTextRotator">
    <div class="modal-dialog modal-md">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4><span class="fa fa-plus-square"></span> NEW TEXT</h4>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-sm-12">
                        <form action="#" method="post" id="newTextForm">
                            <div class="form-group">
                                <input type="hidden" name="id" id="textID">
                                <textarea name="text" id="textSliderInner" cols="30" rows="5" class="form-control" required placeholder="TYPE TEXT HERE... (try to be concise)"></textarea>
                            </div>
                            <?php echo e(csrf_field()); ?>

                            <div class="form-group">
                                <button class="btn btn-md btn-success" id="newTextBtn">SAVE TEXT</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
            <div class="modal-footer"></div>
        </div>
    </div>
</div>

<?php /*ARCHIVER MODAL*/ ?>
<div class="modal" id="archiver">
    <div class="modal-dialog modal-md">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4><span class="fa fa-archive"></span> MASS GAME ARCHIVE</h4>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-sm-5">
                        <form action="<?php echo e(route('/archiveMass')); ?>" method="post" id="massArchive">
                            <div class="form-group col-sm-12">
                                <label for="">GAME ADDED BETWEEN (from)</label>
                                <input type="text" required name="from" class="form-control" placeholder="01-01-2017" value="<?php echo e(\Carbon\Carbon::today()->addMonths('-9')->format('d-m-Y')); ?>">
                            </div>
                            <div class="form-group col-sm-12">
                                <label for="">AND (to)</label>
                                <input type="text" required name="to" class="form-control" placeholder="01-01-2017" value="<?php echo e(\Carbon\Carbon::today()->addMonths('-1')->format('d-m-Y')); ?>">
                            </div>
                            <?php echo e(csrf_field()); ?>

                            <div class="form-group col-sm-12">
                                <button class="btn btn-md btn-success" id="massBtn">ARCHIVE THESE</button>
                            </div>
                        </form>
                    </div>
                    <div class="col-sm-6 text-justify">
                        <h4>IMPORTANT NOTICE:</h4>
                        The dates expected to be inserted ARE NOT the match dates BUT RATHER dates the games are added. For instance, all game added in the month January (01-01-2017 to 31-01-2017).
                        <br>
                        <strong>PS: FOR OPTIMAL PERFORMANCE, MAXIMUM OF 30 GAMES ARE ARCHIVED AT A TIME!</strong>
                    </div>
                </div>
            </div>
            <div class="modal-footer"></div>
        </div>
    </div>
</div>

<?php /*PROMOTION MODAL*/ ?>
<div class="modal" id="promotionView">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4><span class="fa fa-archive"></span> PROMOTION</h4>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-sm-12" id="promBodyy"></div>
                </div>
            </div>
            <div class="modal-footer"></div>
        </div>
    </div>
</div>