@extends('layout.main')
@section('title') @if( ! empty($title)) {{ $title }} | @endif @parent @endsection

@section('main')

@include('admin.sidebar_menu')

<div id="page-wrapper">
    
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header"> Wordpress Plugin </h1>
        </div> <!-- /.col-lg-12 -->
    </div> <!-- /.row -->
    

    @include('admin.flash_msg')

    <div class="row">
        <div class="col-xs-12">
            <div class="form-group">
                <div class="col-sm-8 col-sm-offset-4" style="margin-top:20px;">
                    @if($wordpressApi)
                    <h4 >{{$wordpressApi}}</h4>
                    @else
                    <button class="btn btn-primary"><a href="{{route('wordpress_generate')}}" style="color:white!important;">Click Here to Generate A Wordpress Key</a></button>
                    @endif
                </div>
            </div>

            

        </div>
    </div>

    </div> <!-- /#page-wrapper -->

</div> <!-- /#wrapper -->
@endsection

@section('page-js')
<script src="{{ asset('assets/js/bootstrap-filestyle.min.js') }}"></script>
<script>
    $(":file").filestyle({buttonName: "btn-primary", buttonBefore: true});
</script>
@endsection