Viewing file: index.blade.php (3.02 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
@extends('layouts.customer')
@section('title') {{trans('admin.gateways')}} @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">{{trans('admin.gateways')}}</h2>
<div class="float-right">
<a class="btn btn-primary" href="{{route('customer.gateway.create')}}">@lang('admin.form.button.new')</a>
</div>
</div>
<!-- /.card-header -->
<div class="card-body table-body">
<table id="gateways" class="table table-striped table-bordered dt-responsive nowrap">
<thead>
<tr>
<th>{{trans('customer.name')}}</th>
<th>{{trans('customer.status')}}</th>
<th>{{trans('customer.weblink')}}</th>
<th>{{trans('customer.message_key')}}</th>
<th>{{trans('customer.to_mobile_key')}}</th>
<th>{{trans('customer.from_mobile_key')}}</th>
<th>{{trans('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>
"use strict";
$('#gateways').DataTable({
processing: true,
serverSide: true,
responsive:true,
ajax:'{{route('customer.get.all.gateways')}}',
columns: [
{ "data": "name" },
{ "data": "status" },
{ "data": "weblink" },
{ "data": "message_key" },
{ "data": "to_mobile_key" },
{ "data": "from_mobile_key" },
{ "data": "action" },
]
});
</script>
@endsection
|