@extends('layouts.backend')

@section('title', 'Slides')

@section('section', 'Slides')

@section('content')
    <div class="row">
        <div class="col-md-12">
            <div class="card">
                <div class="card-header card-header-primary card-header-icon">
                    <div class="card-icon">
                        <i class="material-icons">assignment</i>
                    </div>
                    <h4 class="card-title">Lista de slides</h4>
                </div>
                <div class="card-body">
                    <div class="toolbar">
                        <!--        Here you can write extra buttons/actions for the toolbar              -->
                    </div>
                    <div class="material-datatables">
                        <table id="datatables" class="table table-striped table-no-bordered table-hover table-sm" cellspacing="0" width="100%" data-href="{{ route('backend.slides.ajax') }}" data-handle="{{ route('backend.slides.order') }}">
                            <thead>
                            <tr>
                                <th>#</th>
                                <th>Título</th>
                                <th class="disabled-sorting">Acciones</th>
                            </tr>
                            </thead>
                            <tfoot>
                            <tr>
                                <th>#</th>
                                <th>Título</th>
                                <th>Acciones</th>
                            </tr>
                            </tfoot>
                            <tbody>
                            </tbody>
                        </table>
                    </div>
                </div>
                <!-- end content-->
            </div>
            <!--  end card  -->
        </div>
        <!-- end col-md-12 -->
    </div>
    <!-- end row -->
@endsection

@section('scripts')
    <script>
        $(function() {
            $('[href="#slides"]').click().parents('.nav-item').addClass('active');
        });
    </script>
@endsection
