<?php echo $header ; ?><?php echo $column_left ; ?>

<div id="content" style="font-size: 14px">
    <div class="page-header">
        <div class="container-fluid">
            <h1><?php echo $heading_title ; ?></h1>
            <ul class="breadcrumb">
                <?php  foreach ($breadcrumbs as $breadcrumb ){ ?>
                    <li><a href="<?php echo $breadcrumb['href'] ; ?>"><?php echo $breadcrumb['text'] ; ?></a></li>
                <?php } ?>
            </ul>
            <div class="pull-right">
                <button type="submit" form="form-setting" name="save" data-toggle="tooltip" title="<?php echo $button_save ; ?>"
                class="btn btn-primary"><i class="fa fa-save"></i></button>
            </div>
        </div>
        <div class="container-fluid"><?php  if ($error_warning ){ ?>
            <div class="alert alert-danger alert-dismissible"><i
                        class="fa fa-exclamation-circle"></i> <?php echo $error_warning ; ?>
                <button type="button" class="close" data-dismiss="alert">&times;</button>
            </div>
            <?php  } ?>
            <?php  if ($success ){ ?>
            <div class="alert alert-success alert-dismissible"><i class="fa fa-check-circle"></i> <?php echo $success ; ?>
                <button type="button" class="close" data-dismiss="alert">&times;</button>
            </div>
            <?php  } ?>

            <div class="row">

                <div class="col-md-12 col-sm-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <h3 class="panel-title"><i class="fa fa-list"></i> <?php echo $text_list ; ?></h3>
                        </div>
                        <div class="panel-body">

                            <div class="table-responsive">
                                <ul class="nav nav-tabs">
                                    <li class="active"><a data-toggle="tab" href="#setting"><?php echo $column_setting ; ?></a>
                                    </li>


                                </ul>

                                <form action="<?php echo $save ; ?>" method="post" id="form-setting" enctype="multipart/form-data" >
                                    <div class="tab-content">
                                        <div id="setting" class="tab-pane fade in active">
                                            <h3><?php echo $column_setting ; ?></h3>
                                            <table class="table border_none">
                                                <tr>
                                                    <td colspan="3">
                                                        <div class="form-group">
                                                            <label class="col-sm-2 control-label"
                                                                   for="pinta_open_graph_status"><?php echo $colum_status ; ?></label>
                                                            <div class="col-sm-10">
                                                                <select name="pinta_open_graph_status"
                                                                        id="pinta_open_graph_status"
                                                                        class="form-control">

                                                                    <option value="1" <?php  if ($pinta_open_graph_status == 1 ){ echo 'selected';} ?> ><?php echo $on ; ?></option>
                                                                    <option value="0" <?php  if ($pinta_open_graph_status == 0 ){ echo 'selected';} ?> ><?php echo $off ; ?></option>
                                                                </select>
                                                            </div>
                                                        </div>

                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="3">

                                                        <fieldset>
                                                            <legend><?php echo $text_upload ; ?></legend>
                                                            <label class="col-sm-4 control-label"
                                                                   for="pinta_open_graph_image_default"><?php echo $colum_chose_file ; ?></label>


                                                            <div class="col-sm-8">
                                                                <input type="file" class="custom-file-input"
                                                                       id="pinta_open_image_default" name="pinta_open_graph_image_default"
                                                                       multiple >

                                                            </div>
                                                            <div class="form-group">
                                                                <input type="hidden" class="custom-file-input" name="pinta_open_graph_image_default_old"

                                                                       value="<?php echo $pinta_open_graph_image_default ; ?>"  >
                                                                <input type="text" class="custom-file-input" name="pinta_open_graph_image_default_old"

                                                                       value="<?php echo $pinta_open_graph_image_default ; ?>" disabled style="width: 50%;">
                                                            </div>
                                                        </fieldset>

                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <div class="form-group">
                                                            <label for="pinta_open_graph_width_image"><?php echo $colum_width ; ?></label>
                                                            <input type="number" class="form-control" id="pinta_open_graph_width_image" name="pinta_open_graph_width_image" value="<?php echo $pinta_open_graph_width_image ; ?>">
                                                        </div>
                                                    </td>
                                                    <td>

                                                        <div class="form-group">
                                                            <label for="pinta_open_graph_height_image"><?php echo $colum_height ; ?></label>
                                                            <input type="number" class="form-control" id="pinta_open_graph_height_image" name="pinta_open_graph_height_image" value="<?php echo $pinta_open_graph_height_image ; ?>">
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="3">
                                                        <div class="form-group">
                                                            <label class="col-sm-2 control-label"
                                                                   for="pinta_open_graph_currencies"><?php echo $colum_currencies ; ?></label>
                                                            <div class="col-sm-10">


                                                                <ul style="list-style-type: none">
                                                                    <?php  foreach( $currencies as $curency ){ ?>
                                                                    <li>
                                                                        <input type="hidden" value="0" name="pinta_open_graph_curency[<?php echo $curency['code'] ;?>]" <?php if ($pinta_open_graph_curency == 0 ){ echo  "checked";}?> >
                                                                        <label for="<?php echo $curency['code'] ;?>">
                                                                            <input type="checkbox" id="<?php echo $curency['code'];?>" value="1" name="pinta_open_graph_curency[<?php echo $curency['code'] ;?>]"<?php if( $pinta_open_graph_curency[$curency['code']] == 1 ){ echo  "checked";}?> >

                                                                            <?php echo $curency['title'] ;?></label>

                                                                    </li>
                                                                    <?php  } ?>
                                                                </ul>

                                                            </div>
                                                        </div>

                                                    </td>
                                                </tr>

                                                 <tr>
                                                    <td colspan="3">
                                                        <div class="form-group">
                                                            <label class="col-sm-2 control-label" for="pinta_open_graph_currencies">Application ID</label>

                                                            <div class="col-sm-10">
                                                                <input type="text" class="form-control" name="pinta_open_graph_id_application" value="<?php echo $pinta_open_graph_id_application; ?>" style="width: 100%;">
                                                            </div>
                                                        </div>
                                                    </td>
                                                </tr>
                                                
                                            </table>
                                        </div>
                                    </div>
                                </form>
                            </div>


                            <div class="row">
                                <div class="col-sm-6 text-left"><?php echo $pagination ; ?></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>


    </div>
    <?php echo $footer ; ?>