@extends('layouts.app')
@section('title', __('vrc::lang.insurance_companies'))
@section('content')
<section class="content-header"><h1>@lang('vrc::lang.insurance_companies')</h1></section>
<section class="content">
    @component('components.widget', ['class' => 'box-primary'])
        @slot('tool')<div class="box-tools"><button class="btn btn-primary vrc-modal-btn" data-href="{{ route('vrc.insurance-companies.create') }}"><i class="fa fa-plus"></i> @lang('messages.add')</button></div>@endslot
        <table class="table table-bordered table-striped" id="vrc_ins_table">
            <thead><tr><th>@lang('vrc::lang.name')</th><th>@lang('vrc::lang.phone')</th><th>@lang('vrc::lang.email')</th><th>@lang('vrc::lang.status')</th><th>@lang('messages.action')</th></tr></thead>
        </table>
    @endcomponent
    <div class="modal fade vrc_modal" tabindex="-1" role="dialog"></div>
</section>
@endsection
@section('javascript')
<script>
$(function () {
    var t = $('#vrc_ins_table').DataTable({ processing:true, serverSide:true, ajax:'{{ route('vrc.insurance-companies.index') }}',
        columns:[{data:'name',name:'name'},{data:'phone',name:'phone'},{data:'email',name:'email'},{data:'is_active',name:'is_active',orderable:false},{data:'action',name:'action',orderable:false,searchable:false}]});
    window.__vrcTables = window.__vrcTables || []; window.__vrcTables.push(t);
});
</script>
@include('vrc::partials.crud_scripts')
@endsection
