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.
62 lines
2.5 KiB
62 lines
2.5 KiB
@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: 35%" class="text-center">{{translate('messages.from')}}</th>
|
|
<th style="width: 35%" class="text-center">{{translate('messages.to')}}</th>
|
|
<th style="width: 10%" class="text-center">{{translate('messages.action')}}</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>
|
|
|
|
<td>
|
|
@php
|
|
$current_date = date('Y-m-d');
|
|
$from = Carbon\Carbon::parse($log->from);
|
|
@endphp
|
|
|
|
@if ( $from->gt($current_date))
|
|
<a class="btn btn-sm btn-danger" href="javascript:"
|
|
onclick="form_alert('role-{{$log['id']}}','{{translate('messages.Want_to_delete_this_role')}}')" title="{{translate('messages.delete')}} {{translate('messages.role')}}"><i class="tio-delete-outlined"></i>
|
|
</a>
|
|
<form action="{{route('admin.order.subscription.pause_log_delete',[$log['id']])}}"
|
|
method="post" id="role-{{$log['id']}}">
|
|
@csrf @method('delete')
|
|
</form>
|
|
</td>
|
|
@endif
|
|
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
<!-- Footer -->
|
|
<div class="card-footer">
|
|
<!-- Pagination -->
|
|
{!! $logs->links() !!}
|
|
<!-- End Pagination -->
|
|
</div>
|
|
<!-- End Footer -->
|
|
</div>
|
|
</div>
|
|
|