@extends('admin.admin-master')
@section('content')
<div>&nbsp; </div>
@if (Session::has('message'))
<span class="alert {{Session::get('class')}}">
    {{Session::get('message')}}
</span>
@endif
<div>&nbsp; </div>
<h3><i class="fa fa-code"></i> Analytic Code </h3>
<div>&nbsp; </div>
<div class="col-md-12">
    <div class="col-md-6">
        <i class="fa fa-bullhorn"></i> Enter Analytic JavaScript code without <b>&lt;script&gt;</b> tag
        <!-- Form Name -->
        {{Form::open(array('url'=>'/admin/analytics-code',
                    'method'=>'POST'))}}
        <!-- Text input-->

        <div class="clearfix">&nbsp;</div>

        <div class="control-group">
            <label class="control-label" for="textinput"> Analytic Code :  </label>
            <div class="controls">
                {{Form::textarea('analytics_code',isset($settings->analytics_code)?$settings->analytics_code:'',array('class'=>'form-control input-sm','placeholder'=>'Tracking script code ','size'=>'30x20'))}}
            </div>
        </div>
        <div class="clearfix">&nbsp;</div>
       {{Form::hidden('page_id',isset($settings->page_id)?$settings->page_id:'')}}
        <!-- Button -->
        {{Form::button('Reset',array('type'=>'reset','class'=>'btn btn-sm btn-default'))}}
        {{Form::button('<i class="fa fa-cog"></i> Save ',array('type'=>'submit','class'=>'btn btn-sm btn-info'))}}
        <span id="page_loader"></span>
        {{Form::close()}}
        <!--// End Form Name -->
    </div>
    <div class="col-md-6">

    </div>
</div>
<!---- Modal ------>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <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 class="modal-title" id="myModalLabel">Update group</h4>
            </div>
            <div class="modal-body group-form">
            </div>
            <p class="">&nbsp;</p>
        </div>
    </div>
</div>

<!---// Modal ------->
@stop
