@extends('layouts/base_view')
@section('title')
{!! $variables['header_routes'] !!}
@endsection
@section('content')
<section class="content">
    <div class="container-fluid">
        <div class="row">
            <div class="col-12">
                <div class="card">
                    <div class="card-body">
                        <div class="table-responsive">
                            <table id="tblPeran" class="table table-hover table-sm">
                                <thead class="bg-warning">
                                    <tr>
                                    <th width="25%">Kunci</th>
                                    <th width="25%">Nilai</th>
                                    <th width="50%">Deskripsi</th>
                                </tr>
                            </thead>
                            <tbody>
                                @foreach ($parameter_globals as $key => $data)
                                <tr>
                                    <td> <a href="{{ route('parameter_globals.edit', $data->id) }}"> {{ $data->key }} </a></td>
                                    <td>{{ $data->value }}</td>
                                    <td>{{ $data->description }}</td>
                                </tr>
                                @endforeach
                            </tbody>
                            <tfoot> </tfoot>
                        </table>
                    </div>
                </div>
                <!-- /.card -->
            </div>
            <!-- /.col -->
        </div>
        <!-- /.row -->
    </div>
    <!-- /.container-fluid -->
</section>
<script>
    $(function() {
        $("#tblPeran").DataTable({
            "responsive": false,
            "lengthChange": true,
            "autoWidth": false,
            buttons: [{
                    extend: "copy",
                    className: "btn btn-warning"
                },
                {
                    extend: "csv",
                    className: "btn btn-warning"
                },
                {
                    extend: "excel",
                    className: "btn btn-warning"
                },
                {
                    extend: "pdf",
                    className: "btn btn-warning"
                },
                {
                    extend: "print",
                    className: "btn btn-warning"
                },
                // {
                //     extend: "colvis",
                //     className: "btn btn-warning"
                // }
            ]
        }).buttons().container().appendTo('#tblPeran_wrapper .col-md-6:eq(0)');
    });
</script>
<!-- /.content -->
@endsection