@extends('../nn_cms/index')

@section('content')

    <div class="page-content">
        <!-- BEGIN PAGE HEADER-->
        <!-- BEGIN PAGE BAR -->
        <div class="page-bar">
            <ul class="page-breadcrumb">
                <li>
                    <a href="{{ url(getCurrentLocale() . '/manager') }}">{{ trans('general.bcHome') }}</a>
                    <i class="fa fa-circle"></i>
                </li>
            </ul>
        </div>
        <!-- END PAGE BAR -->
        <!-- BEGIN PAGE TITLE-->
        <h3 class="page-title"> საიტის პარამეტრები</h3>
        <div class="portlet light bordered">
            <div class="portlet-body form">
                <div class="tab-content">
                    {!! Form::open(array('method' => 'PATCH', 'url' => getCurrentLocale().'/manager/site-settings/update', 'id' => 'form_site_setting', 'class' => 'form-horizontal form_ajax')) !!}
                        <div class="form-body">
                            <div class="form-group">
                                <label class="col-md-2 control-label">Email</label>
                                <div class="col-md-7">
                                    <input type="text" name="email" class="form-control input-lg" value="{{ $siteSettings ? $siteSettings->email : '' }}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-md-2 control-label">Facebook</label>
                                <div class="col-md-7">
                                    <input type="text" name="facebook" class="form-control input-lg" value="{{ $siteSettings ? $siteSettings->facebook : '' }}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-md-2 control-label">Instagram</label>
                                <div class="col-md-7">
                                    <input type="text" name="instagram" class="form-control input-lg" value="{{ $siteSettings ? $siteSettings->instagram : '' }}">
                                </div>
                            </div>
                            <div class="form-group last">
                                <label class="col-md-2 control-label">Twitter</label>
                                <div class="col-md-7">
                                    <input type="text" name="twitter" class="form-control input-lg" value="{{ $siteSettings ? $siteSettings->twitter : '' }}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-md-2 control-label">LinkedIn</label>
                                <div class="col-md-7">
                                    <input type="text" name="linkedin" class="form-control input-lg" value="{{ $siteSettings ? $siteSettings->linkedin : '' }}">
                                </div>
                            </div>
                            <div class="form-actions right">
                                <div class="row">
                                    <div class="col-md-9">
                                        <button type="submit" class="btn green-seagreen btn-outline sbold uppercase" data-action="collapse-all" data-update-success-text="{{ trans('general.updateSuccess') }}">{{ trans('general.fclbUpdate') }}</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    {!! Form::close() !!}
                </div>
            </div>
        </div>
    </div>

    @push('body.bottom')

        <script src="{{ url('assets/nn_cms/global/plugins/bootstrap-toastr/toastr.min.js') }}" type="text/javascript"></script>
        <script src="{{ url('assets/nn_cms/custom/js/toastr.js') }}" type="text/javascript"></script>

        <!-- END TOASTR SCRIPTS -->

        <script src="{{ url('assets/nn_cms/custom/js/form-site-settings.js') }}" type="text/javascript"></script>

        <!-- END UPDATE BY AJAX FORM.JS  -->

    @endpush

@stop