@extends('admin.layouts.app')
@section('contentSection')
<div class="row">
    <div class="col-lg-12">
        <div class="card">
            <div class="card-header">
                <div class="pull-left"><i class="fa fa-table"></i> Purposes (<span id="module_total_count"></span>)
                </div>
                <div class="pull-right">
                    <button type="button" data-toggle="modal" data-target="#addPurposeModal" class="btn btn-primary"><i
                            class="fa fa-plus"></i> Add Purpose
                    </button>
                </div>
            </div>
            <div class="card-body">
                <div class="table-responsive">
                    <table id="purposesListTable" class="table table-bordered" style="width: 100%"></table>
                </div>
            </div>
        </div>
    </div>
</div>
@stop

@section('pageSpecificScripts')
@include('admin.purposes.purposesListTemplate')
@include('admin.purposes.modals.addPurposeModal')
@include('admin.purposes.modals.editPurposeModal')
<script src="{{ asset('back_assets/assets/plugins/summernote/dist/summernote-bs4.min.js') }}"></script>
<script src="{{asset('back_assets/assets/plugins/bootstrap-datatable/js/jquery.dataTables.min.js')}}"></script>
<script src="{{asset('back_assets/assets/plugins/bootstrap-datatable/js/dataTables.bootstrap4.min.js')}}"></script>
<script src="{{asset('back_assets/assets/js/app/purposesScript.js')}}?{{ app_version() }}"></script>
@stop