PAID COURSE

@include('common.alert') {{--
Reset
--}}
@if(count($data)>0) @foreach ($data as $course)
{{ $course->title }}
img
@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() !!}

FREE COURSE

@include('common.alert')
{{--
Reset
--}}
@if(count($free) >0 ) @foreach ($free as $course)
{{ $course->title }}
img

Start : {{ Carbon::parse($course->created_at)->format('d-m-Y') }}

End : {{ Carbon::parse($course->expire_date)->format('d-m-Y') }}

@endforeach @else
No Free Courses
@endif
{{-- Pagination --}}
Showing {{$free->firstItem()}} to {{$free->lastItem()}} of {{$free->total()}} Entries
{!! $free->appends(request()->all())->links() !!}