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

@section('content')
    <div id="generic_wrapper">
        <h1>Form Event Registration</h1>
        <div id="form-event-registration">
            <div class="export-event-registration">
                <button type="button" data-toggle="tooltip" class="btn btn-default command-export list-export-btn" title="Export to Excel">
                    <span class="icon glyphicon glyphicon-export"></span>
                </button>
            </div>
            <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="full_name">Full Name</th>
                        <th data-column-id="email">Email</th>
                        <th data-column-id="company_full_name">Full Name Company</th>
                        <th data-column-id="commands" data-formatter="commands" data-sortable="false">{{ trans('backend.actions') }}</th>
                    </tr>
                </thead>
            </table>
        </div>
    </div>
    <script>
        $(function() {
            var formEventRegistrationList = new Eae.View.FormEventRegistrationList({
                el : $('#generic_wrapper'),
                userId : "{{ Auth::guard('admin')->user()->id }}"
            });
        });
    </script>
@stop
