@extends('adminlte::page')
@section('title', 'Atributi')

@section('content_header')
    <h1 class="m-0 text-dark">Atributi</h1>
@stop
@section('content')
<table id="data-table" class="display" cellspacing="0" width="100%">
                <thead>
                    <tr>
                        <th>{!! Lang::get('common.id') !!}</th>
                        <th>{!! Lang::get('common.code') !!}</th>
                        <th>{!! Lang::get('common.name') !!}</th>
                        <th>{!! Lang::get('common.type') !!}</th>
                        <th>{!! Lang::get('common.is_required') !!}</th>
                        <th>{!! Lang::get('common.is_unique') !!}</th>
                        <th>{!! Lang::get('common.is_filterable') !!}</th>
                    </tr>
                </thead>
              
                <tbody>
                    @foreach($attributes as $item)
                    <tr>
                        <td>{!! $item->id !!}</td>
                        <td>{!! $item->code !!}</td>
                        <td>{!! $item->name !!}</td>
                        <td>{!! $item->type !!}</td>
                        <td>{!! $item->is_required !!}</td>
                        <td>{!! $item->is_unique !!}</td>
                        <td>{!! $item->is_filterable !!}</td>
                    </tr>
                    @endforeach
                </tbody>
            </table>
            {{ $attributes->links() }}
@endsection
@section('js')
@section('plugins.Datatables', true)
<script>
$(document).ready(function() {
    
        $('#data-table').DataTable({
            "paging": false,
            "lengthChange": false,
            "searching": true,
            "ordering": true,
            "info": false,
            "autoWidth": false
        });
} );


</script>
@endsection

