@include('common.alert')
{{--
--}}
@if(count($data)>0)
@foreach ($data as $course)
{{ $course->title }}
@php
$time = $course->getExpireTimeRemaining();
$days_diff = now()->parse($course->expire_date)->diffInDays(now());
@endphp
@if ($time == "End Time")
{{$time}}
@else
@if($days_diff < 10) {{$time}}
@else
{{$time}}
@endif
@endif
Start :
{{ Carbon::parse($course->created_at)->format('d-m-Y') }}
End :
{{ Carbon::parse($course->expire_date)->format('d-m-Y') }}
INR {{$course->payment_amount}}
Paid
@endforeach
@else
No Paid Courses
@endif
Showing {{$data->firstItem()}} to {{$data->lastItem()}} of {{$data->total()}} Entries
{!! $data->appends(request()->all())->links() !!}