@if (!is_null($lead->student_id)) @can('crm_lead_schedule-view')
Schedule
@can('crm_lead_schedule-create') @endcan
@if ($products->count() > 0) @foreach ($products as $product) @endforeach
Course Name Start Date End Date Session Invoice
{{ $product->course_name_en }} {{ $product->start_date }} {{ $product->end_date }} {{ $product->session }} @php $invoice = $product->coursestudents->first()?->finanaceStudentInvoice; @endphp @if ($invoice) {{ $invoice->invoice_number }} @else
@endif
@else @endif
@php $archivedProducts = $archivedProducts ?? collect(); // Define if not passed in @endphp @if ($products->count() > 0) @foreach ($products as $product) @endforeach
Actions
@method('DELETE') @csrf
@else @endif
@endcan @endif @if (!is_null($lead->student_id)) @can('crm_lead_tasks-view')
Tasks
@can('crm_lead_tasks-create') @endcan
{{ $tasks->links('pagination::bootstrap-5') }}
@endcan @endif