@extends('layouts.master')

@section('title', 'History Submit')
@section('content')
<!-- Start content -->
<div class="content">
    <div class="container-fluid">
      <div class="row">
            <div class="col-12">
                <div class="card-box table-responsive">
                    <h4 class="m-t-0 m-b-20 header-title"><b>History <span class="label label-primary">SUBMIT</span></b></h4>
                    <table id="datatable-buttons" class="table table-striped table-bordered" cellspacing="0" width="100%">
                        <thead>
                        <tr>
                            <th>Submitted By</th>
                            <th>Target</th>
                            <th>Jumlah</th>
                            <th>IP</th>
                            <th>Type</th>
                            <th>Date</th>
                        </tr>
                        </thead>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <!-- container -->

</div>
<!-- content -->
@endsection

@section('js')
@section('js')
<script type="text/javascript">
var resizefunc = [];
$(document).ready(function() {
    $('#datatable-buttons').DataTable({
    ordering: false,
    serverSide: true,
    processing: true,
    ajax: '{{ route('submits.list') }}',
    columns: [
        {data: 'submitted_by'},
        {data: 'target'},
        {data: 'total_submit'},
        {data: 'ip'},
        {data: 'type'},
        {data: 'created_at'},
    ]
    });
});

</script>
@endsection
@endsection
