Viewing file: index.blade.php (3.27 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
@extends('layouts.customer')
@section('title') Keywords @endsection
@section('extra-css')
<link rel="stylesheet" href="{{asset('plugins/datatables-bs4/css/dataTables.bootstrap4.min.css')}}">
<link rel="stylesheet" href="{{asset('plugins/datatables-responsive/css/responsive.bootstrap4.min.css')}}">
@endsection
@section('content')
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-header">
<h2 class="card-title">@lang('customer.list')</h2>
<div class="float-right">
<a class="btn btn-primary" href="{{route('customer.keywords.create')}}">@lang('customer.new_keyword')</a>
</div>
</div>
<!-- /.card-header -->
<div class="card-body">
<table id="keywords" class="table table-striped table-bordered dt-responsive nowrap">
<thead>
<tr>
<th>@lang('customer.keyword')</th>
<th>@lang('customer.phone_number')</th>
<th>@lang('customer.customer_number')</th>
<th>@lang('customer.opt_type')</th>
<th>@lang('customer.opt_in_message')</th>
<th>@lang('customer.opt_out_message')</th>
<th>@lang('customer.action')</th>
</tr>
</thead>
</table>
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</section>
<!-- /.content -->
@endsection
@section('extra-scripts')
<script src="{{asset('plugins/datatables/jquery.dataTables.min.js')}}"></script>
<script src="{{asset('plugins/datatables-bs4/js/dataTables.bootstrap4.min.js')}}"></script>
<script src="{{asset('plugins/datatables-responsive/js/dataTables.responsive.min.js')}}"></script>
<script src="{{asset('plugins/datatables-responsive/js/responsive.bootstrap4.min.js')}}"></script>
<script src="{{asset('js/readmore.min.js')}}"></script>
<script>
"use strict";
$('#keywords').DataTable({
processing: true,
serverSide: true,
responsive:true,
ajax:'{{route('customer.keyword.get.all')}}',
columns: [
{ "data": "word" },
{ "data": "customer_phone" },
{ "data": "contacts" },
{ "data": "type" },
{ "data": "confirm_message" },
{ "data": "optout_message" },
{ "data": "action" },
],
fnInitComplete: function(oSettings, json) {
$(".show-more").css('overflow', 'hidden').readmore({collapsedHeight: 20,moreLink: '<a href="#">More</a>',lessLink: '<a href="#">Less</a>'});
}
});
</script>
@endsection
|