File: /var/www/vhost/disk-apps/alq-cali.bikenow.co/resources/views/paymentGateway/list.blade.php
@extends('modules.head') @section('contenido')
<style>
/* Ensure that the demo table scrolls */
/* th, */
td {
white-space: nowrap;
}
div.dataTables_wrapper {
height: fit-content;
margin: 0px 10px 0px 10px;
}
.dataTables_scrollBody {
max-height: none !important;
}
</style>
<div class="box-header">
<a class="auxiliar-black" href="{{ route('paymentGateway.create') }}">
<button class="btn btnAdd pull-right">
<i style="margin-right:5px;" class="fa fa-plus"></i>{{ __('messages.paymentGateway.title_12') }}
</button></a>
</div>
<!-- List -->
<div class="box">
<div class="box-header with-border">
<h3 class="box-title">{{ __('messages.paymentGateway.title_13') }}</h3>
</div>
<!-- /.box-header -->
<div class="box-body table-responsive ">
<table id="example2" class="stripe row-border order-column" style="width:100%" role="grid" aria-describedby="example2_info">
<thead>
<tr role="row">
<th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="Browser: activate to sort column ascending">
{{ __('messages.paymentGateway.title_3') }}
</th>
<th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="Browser: activate to sort column ascending">
{{ __('messages.paymentGateway.title_34') }}
</th>
<th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="Browser: activate to sort column ascending">
{{ __('messages.paymentGateway.title_4') }}
</th>
<th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="Browser: activate to sort column ascending">
{{ __('messages.paymentGateway.title_17') }}
</th>
<th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="Browser: activate to sort column ascending">
{{ __('messages.paymentGateway.title_18') }}
</th>
<th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="Engine version: activate to sort column ascending">
{{ __('messages.paymentGateway.title_35') }}
</th>
<th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="Engine version: activate to sort column ascending">
{{ __('messages.paymentGateway.title_19') }}
</th>
<th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="Engine version: activate to sort column ascending">
{{ __('messages.paymentGateway.title_14') }}
</th>
<th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="Engine version: activate to sort column ascending">
{{ __('messages.paymentGateway.title_15') }}
</th>
</tr>
</thead>
</table>
</div>
<!-- /.box-body -->
</div>
<input type="hidden" name="_enable_payment_gateway_authorizing_email" value="{{ $enable_payment_gateway_authorizing_email ?? 'false' }}">
<input type="hidden" name="_payment_gateway_authorizing_email" value="{{ $payment_gateway_authorizing_email ?? '' }}">
<!-- /.box -->
<!-- Modal OTP -->
@include('paymentGateway.modal-otp')
<!-- Modal OTP -->
<script src="{{ asset('js/jQuery/jquery-2.2.3.min.js') }}"></script>
<script src="{{ asset('js/paymentGateway.js') . '?v=' . time() }}"></script>
<script src="{{ asset('js/bootstrap/js/bootstrap.min.js') }}"></script>
<script type="text/javascript">
$(document).ready(function() {
localStorage.setItem('enable_payment_gateway_authorizing_email', $('input[name="_enable_payment_gateway_authorizing_email"]').val());
localStorage.setItem('payment_gateway_authorizing_email', $('input[name="_payment_gateway_authorizing_email"]').val());
let fixedColumns = false;
let isMobileDevice = /Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
if (!isMobileDevice) {
fixedColumns = {
left: 1,
right: 3
};
}
_table = $('#example2').DataTable({
responsive: true,
processing: true,
serverSide: true,
order: [],
language: {
url: window.DATATABLES_LANGUAGE_URL,
},
scrollX: true,
scrollCollapse: true,
paging: true,
fixedColumns: fixedColumns,
ajax: "{{ route('paymentGateway.table') }}",
columns: [{
data: 'name',
name: 'name'
},
{
data: 'image',
name: 'image'
},
{
data: 'description',
name: 'description'
},
{
data: 'gw_url_prd',
name: 'gw_url_prd'
},
{
data: 'gw_url_sandbox',
name: 'gw_url_sandbox'
},
{
data: 'valid_payments',
name: 'valid_payments'
},
{
data: 'is_productive',
name: 'is_productive'
},
{
data: 'active',
name: 'active'
},
{
data: 'actions',
name: 'actions'
}
]
});
var info = '<i class="fa fa-info-circle" id="btn-info-busqueda"></i><div class="dropdown-menu" id="menuBusqueda" style="left: 50%; padding: 5px; background-color: #f9fb8f;"><p data-toggle="modal">Busqueda por Cedula, Nombre y Correo</p></div>';
$('#example2_filter').append(info);
$('#btn-info-busqueda').on('click', function() {
$('#menuBusqueda').toggle();
});
});
</script>
@endsection