
@extends('adminlte::page')
 
@section('content')
<?php Fun::lang()?>
<div class="title-page">
	<div class="page-bar">
		<ul class="page-breadcrumb">
			<li><a href="#"><i class="fa fa-dashboard"></i> Dashboard</a></li>
			<li><a href="#">Setting</a></li>
			<li><a href="#">Log Activity</a></li>
		</ul>
	</div>
</div>
<div class="page">
	 <div class="top-content">
            <div class="row">
                <div class="col-sm-12 col-xs-12">
                    <div class="pull-left">
                        <h3>Log Activity</h3>
                    </div>

                </div>
            </div>
        </div>
	<div class="box-body table-responsive">
								
	<table id="datatable_log_activity" class="table table-striped table-bordered table-hover nowrap">

		<thead>
			<tr>
				<th>No</th>
				<th>User / Email</th>
				<th>Subject</th>
				<th>URL</th>
				<th>Method</th>
				<th>Ip</th>
				<th>Created At</th>
				<th width="300px">User Agent</th>
				
			</tr>
		</thead>
		

	</table>
</div>
</div>
@endsection


@section('js')
<script type="text/javascript">
        $(document).ready(function() {
		$('#datatable_log_activity').DataTable({
			ordering:  false,
			"serverSide": true,
			"lengthMenu": [[20, 30, 50, 100, -1], [20, 30, 50, 100, "All"]],
			ajax: '{{ route('log.activity_datatable') }}',
			columns: [
				{data: 'DT_RowIndex'},
				{data: 'get_user.email'},
				{data: 'subject'},
				{data: 'url'},
				{data: 'action'},
				{data: 'ip'},
				{data: 'created_at'},
				{data: 'agent'},
			]				  
		});
		$.fn.dataTable.ext.errMode = 'throw';
	});
    </script>

@endsection


	
