ctrlpanel/themes/default/views/admin/payments/index.blade.php

99 lines
3.8 KiB
PHP
Raw Normal View History

2021-06-05 09:26:32 +00:00
@extends('layouts.main')
@section('content')
<!-- CONTENT HEADER -->
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
2021-12-13 07:42:53 +00:00
<h1>{{__('Payments')}}</h1>
2021-06-05 09:26:32 +00:00
</div>
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="{{route('home')}}">Dashboard</a></li>
2021-12-13 07:42:53 +00:00
<li class="breadcrumb-item"><a class="text-muted" href="{{route('admin.payments.index')}}">{{__('Payments')}}</a>
2021-06-05 09:26:32 +00:00
</li>
</ol>
</div>
</div>
</div>
</section>
<!-- END CONTENT HEADER -->
<!-- MAIN CONTENT -->
<section class="content">
<div class="container-fluid">
<div class="card">
<div class="card-header">
2021-12-15 12:33:57 +00:00
<h5 class="card-title"><i class="fas fa-money-bill-wave mr-2"></i>{{ __('Payments') }}</h5>
2022-01-04 08:05:53 +00:00
<div class="float-right">
<a href="{{ route('admin.invoices.downloadAllInvoices') }}"><button
class="btn btn-info">{{ __('Download all Invoices') }}</button></a>
</div>
2021-06-05 09:26:32 +00:00
</div>
<div class="card-body table-responsive">
<table id="datatable" class="table table-striped">
2021-06-05 09:26:32 +00:00
<thead>
2021-12-15 12:33:57 +00:00
<tr>
<th>{{ __('ID') }}</th>
<th>{{ __('Type') }}</th>
<th>{{ __('User') }}</th>
2021-12-15 12:33:57 +00:00
<th>{{ __('Amount') }}</th>
<th>{{ __('Product Price') }}</th>
<th>{{ __('Tax Value') }}</th>
<th>{{ __('Tax Percentage') }}</th>
<th>{{ __('Total Price') }}</th>
<th>{{ __('Payment ID') }}</th>
<th>{{ __('Payment Method') }}</th>
<th>{{ __('Created at') }}</th>
2022-01-04 08:05:53 +00:00
<th></th>
2021-12-15 12:33:57 +00:00
</tr>
2021-06-05 09:26:32 +00:00
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
2021-06-05 09:26:32 +00:00
</div>
<!-- END CUSTOM CONTENT -->
</div>
</section>
<!-- END CONTENT -->
<script>
2021-12-15 12:33:57 +00:00
document.addEventListener("DOMContentLoaded", function() {
$('#datatable').DataTable({
2021-12-13 21:39:40 +00:00
language: {
url: '//cdn.datatables.net/plug-ins/1.11.3/i18n/{{config("SETTINGS::LOCALE:DATATABLES")}}.json'
2021-12-13 21:39:40 +00:00
},
processing: true,
serverSide: true,
stateSave: true,
2021-12-15 12:33:57 +00:00
ajax: "{{ route('admin.payments.datatable') }}",
2023-01-05 23:01:23 +00:00
order: [[ 10, "desc" ]],
columns: [
2021-12-15 12:33:57 +00:00
{data: 'id',name: 'payments.id'},
{data: 'type'},
2023-01-05 23:01:23 +00:00
{data: 'user'},
{data: 'amount'},
{data: 'price'},
2021-11-05 07:45:29 +00:00
{data: 'tax_value'},
{data: 'tax_percent'},
{data: 'total_price'},
{data: 'payment_id'},
{data: 'payment_method'},
2023-01-05 23:01:23 +00:00
{data: 'created_at', type: 'num', render: {_: 'display', sort: 'raw'}},
2022-01-04 08:05:53 +00:00
{data: 'actions' , sortable : false},
],
2021-12-15 12:33:57 +00:00
fnDrawCallback: function(oSettings) {
$('[data-toggle="popover"]').popover();
2021-12-15 12:33:57 +00:00
},
});
});
</script>
2021-06-05 09:26:32 +00:00
@endsection