<x-app-layout>
    <x-slot name="header">
        <div class="row">
            <div class="col-6">
                <h4 class="" title><i class="circular icon fa fa-list"></i> {{ __('Employers')  }} </h4>
            </div>
            <div class="col-6">
                <a class="btn btn-primary btn-sm float-right" href="{{ route('employers.create') }}"><i class="fas fa-plus-circle"></i> {{ __('Create') }}</a>
            </div>
        </div>
    </x-slot>
    <div class="row">
        <div class="col-12">
            <div class="card">
                <div class="card-body">
                    <v-form>
                    </v-form>
                    {{$dataTable->table()}}
                </div>
            </div>
        </div>
    </div>


    <x-slot name="after_script">
        {{$dataTable->scripts()}}
        <script>
                var app = new Vue({
                    el: '#app',
                    mixins: [DestroyMixin],
                    data: {
                        table: "employers-table",
                    },
                    mounted:function(){
                        const vm = this;
                        $(document).on('draw.dt',function(e){
                            vm.$root.load = false;
                        });
                    }
                })
        </script>
        
    </x-slot>
</x-app-layout>
