<section class="panel panel-primary">
    <header class="panel-heading">
        <h2>
            <?php echo app('translator')->getFromJson('backend.latest-instagram-media'); ?>
        </h2>
    </header>

    <form action="<?php echo e(route('beHomeSaveInstagram')); ?>" method="POST">
        <div class="panel-body">
            <?php echo e(csrf_field()); ?>

            <?php echo e(method_field('POST')); ?>


            <div class="form-group row">
                <label for="show" class="control-label col-xs-12 col-sm-3 col-md-3">
                    <?php echo app('translator')->getFromJson('backend.show-instagram-section'); ?>
                </label>
                <div class="col-xs-12 col-sm-9 col-md-9">
                    <input type="checkbox" name="show" <?php echo e($homeInstagram ? 'checked' : ''); ?>>
                </div>
            </div>

            <div class="form-group row">
                <label for="amount" class="control-label col-xs-12 col-sm-3 col-md-3"><?php echo app('translator')->getFromJson('backend.display-amount'); ?></label>
                <div class="col-xs-12 col-sm-9 col-md-9">
                    <select name="limit" class="form-control">
                        <option value="3" <?php echo e($homeInstagramLimit == 3 ? 'selected' : ''); ?>>3</option>
                        <option value="6" <?php echo e($homeInstagramLimit == 6 ? 'selected' : ''); ?>>6</option>
                        <option value="9" <?php echo e($homeInstagramLimit == 9 ? 'selected' : ''); ?>>9</option>
                    </select>
                </div>
            </div>

            <div class="form-group row">
                <label for="token" class="control-label col-xs-12 col-sm-3 col-md-3">Instagram Api Token</label>
                <div class="col-xs-12 col-sm-9 col-md-9">
                    <input type="text" name="token" class="form-control" value="<?php echo e($instagram_key); ?>">
                    <small class="text-muted"><?php echo app('translator')->getFromJson('backend.generate-api-token-at'); ?>
                        <a href="http://instagram.pixelunion.net/" target="_blank">Pixel Union's access token generator.</a>
                    </small>
                </div>
            </div>
        </div>
        
        <footer class="panel-footer text-center">
            <button type="submit" class="btn btn-primary"><?php echo app('translator')->getFromJson('backend.update'); ?></button>
        </footer>
        
    </form>
</section>