@extends('admin.layouts.main', array('scripts' => array(path_asset('path.backoffice.js_path') . '/view/assessments-list.js')))

@section('content')
    <div id="generic_wrapper">
        <h1>On site Assessments</h1>
        <div class="grid-btns-wrapper">
            <!--
            <button type="button" data-toggle="tooltip" data-placement="right" class="btn btn-default command-export" title="Export to Excel">
                <span class="icon glyphicon glyphicon-export"></span>
            </button>
          -->
        </div>
        <div id="assessments">
            <table id="grid" class="table table-condensed table-hover table-striped">
                <thead>
                    <tr>
                        <th data-column-id="id" data-type="numeric" data-identifier="true">ID</th>
                        <th data-column-id="created_at" data-order="desc">Date</th>
                        <th data-column-id="first_name">First Name</th>
                        <th data-column-id="last_name">Last Name</th>
                        <th data-column-id="company">Company</th>
                        <th data-column-id="email">E-mail</th>
                        <th data-column-id="country">Country</th>
                        <th data-column-id="site_name">Site Name</th>

                        <th data-column-id="commands" data-formatter="commands" data-sortable="false">Load Profile</th>
                    </tr>
                </thead>
            </table>
        </div>
    </div>
    <script>
        $(function() {
            var assessmentsView = new Eae.View.AssessmentsList({
                el : $('#generic_wrapper'),
                userId : "{{ Auth::guard('admin')->user()->id }}"
            });
        });
    </script>
@stop
