@if (!is_null($lead->student_id)) @can('crm_lead_demo-view')
Demo
@can('crm_lead_demo-create') @if ($lead->student_id == null) @else @endif @endcan
@if (!$getDemoStudentCourseData->count())

No request found for this lead.

@else @foreach ($getDemoStudentCourseData as $demoCourse) @endforeach
Course Name Start Time End Time Invoice status Invoice
{{ $demoCourse->course_name_en }} {{ $demoCourse->start_date }} {{ $demoCourse->end_date }} @php $paymentStatus = optional($demoCourse->coursestudents->first()?->finanaceStudentInvoice)->payment_status; @endphp @if($paymentStatus === 'paid') Paid @elseif($paymentStatus === 'not_paid') Not Paid @else No Invoice Yet @endif @php $invoice = $demoCourse->coursestudents->first()?->finanaceStudentInvoice; @endphp @if ($invoice) {{ $invoice->invoice_number }} @else
@endif
@endif
@if (!$getDemoStudentCourseData->count())

No request found for this lead.

@else @foreach ($getDemoStudentCourseData as $demoCourse) @endforeach
Course Name Start Date End Date status
{{ $demoCourse->course_name_en }} {{ $demoCourse->start_date }} {{ $demoCourse->end_date }} {{ $demoCourse->session }}
@endif
@endcan @endif