You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.5 KiB

2 years ago
@php
$logs = $subscription->pause()->latest()->paginate(config('default_pagination'));
@endphp
<div class="card">
<div class="card-header">
<h5 class="card-header-title">{{translate('messages.subscription_pause_logs')}}<span class="badge badge-soft-dark ml-2">{{$logs->total()}}</span></h5>
</div>
<!-- Table -->
<div class="table-responsive datatable-custom">
<table id="columnSearchDatatable"
class="table table-borderless table-thead-bordered table-nowrap table-align-middle card-table"
data-hs-datatables-options='{
"order": [],
"orderCellsTop": true,
"paging":false
}'>
<thead class="thead-light">
<tr>
<th style="width: 20%">{{translate('messages.#')}}</th>
<th style="width: 40%" class="text-center">{{translate('messages.from')}}</th>
<th style="width: 40%" class="text-center">{{translate('messages.to')}}</th>
</tr>
</thead>
<tbody>
@foreach($logs as $key=>$log)
<tr>
<td>{{$key+$logs->firstItem()}}</td>
<td class="table-column-pl-0 text-center">{{date('Y-m-d', strtotime($log->from))}}</td>
<td class="table-column-pl-0 text-center">{{date('Y-m-d', strtotime($log->to))}}</td>
</tr>
@endforeach
</tbody>
</table>
<!-- Footer -->
<div class="card-footer">
<!-- Pagination -->
{!! $logs->links() !!}
<!-- End Pagination -->
</div>
<!-- End Footer -->
</div>
</div>