@extends('admin.layouts.master')
@section('content')
  <?php $success = false; ?>
  
    @if (\Session::has('success'))
    <?php $success = true; ?> 
        <div class="alert alert-success">
            {!! \Session::get('success') !!}
        </div>
    @endif
<div class="page-content fade-in-up">
    <div class="ibox">
        <div class="ibox-body">
            <h5 class="font-strong mb-4">{{__('Users Listing')}}<a href="{{route('admin_users_save')}}" class="btn btn-primary pull-right mr-3">Add User</a></h5>
                <table
                    class="table table-bordered table-hover" 
                    id="notificationsListing" 
                    data-source = "{{ route('admin_users_ajax') }}"
                    data-cols = ",,,">
                    <thead class="thead-default thead-lg">
                         <tr>
                            <th width="20%">Name</th>
                            <th width="50%">Email</th>
                            <th width="20%">Role</th>
                            <th width="10%">Action</th>
                        </tr>
                    </thead>
                </table>
        </div>
    </div>
</div>

        <!-- END PAGE CONTENT-->
@endsection

@section('scripts')
<script>
    DataTable.initDataTable('#notificationsListing');
</script>
@endsection