@foreach($combinedData as $data) @php $link = route('practitioner.courses.online.course.analytics', [ 'client_id' => base64_encode($data->client_id) ]); @endphp @if($data->payment_plan_purchase_id != null)
@endif {{ $data->purchaseDate }} {{-- {{ $data->user_type }} --}} {{ $data->course_name }} {{-- {{ ucwords( $data->client_name ) }} --}} {{ ucwords($data->client_name) }} ${{ $data->amount_paid }} @if($data->payment_plan_purchase_id != null) @endif ${{ $data->account_balance }} {{ $data->last_access }} {{ $data->progress }}% {{-- {{ empty($data->course_expiry_date) || $data->course_expiry_date == '0000-00-00' ? 'Ongoing' : \Carbon\Carbon::parse($data->course_expiry_date)->format('d/m/Y') }} --}} @if (!empty($data->course_invoice_id) && !empty($data->invoice_number)) @if (in_array($data->pay_status, ['paid', 'credit'])) {{ empty($data->course_expiry_date) || $data->course_expiry_date == '0000-00-00' ? 'Ongoing' : \Carbon\Carbon::parse($data->course_expiry_date)->format('d/m/Y') }} @else Unpaid @endif @else {{ empty($data->course_expiry_date) || $data->course_expiry_date == '0000-00-00' ? 'Ongoing' : \Carbon\Carbon::parse($data->course_expiry_date)->format('d/m/Y') }} @endif @if($data->status == 'active') Active @elseif($data->status == 'ongoing') Ongoing @else Expired @endif @if($data->lock_status == 0) Unlocked @else Locked @endif {{-- --}} {{-- --}} @endforeach