{{ __('messages.Current Courses') }}
@if ($currentCourses->count() > 3)
{{ __('messages.View All') }}
@endif
@forelse($orders as $order) @foreach ($order->order_details as $order_detail) @php $course_customer = $order_detail->course_customers->first(); $course = optional($course_customer)->course; if (!$course || $course->active != 1) { continue; } $productField = optional(get_entry($course->course_level->product_id, 'product_system_field')); @endphp @if ($productField && $productField->assets_field) @elseif ($course->course_level->product && $course->course_level->product->image) @else @endif
{{ $course->name }}
{{ __('messages.Complete the course') }}
@endforeach @empty
{{ __('messages.There are no courses') }}
@endforelse
{{ __('messages.payments') }}
@if ($orders)
{{ __('messages.View All') }}
@endif
@if ($orders)
@foreach ($orders as $order) @php $ordersWithPaymentMethod = $order ->order_payments() ->where('payment_method_id', 4) ->first(); if ($ordersWithPaymentMethod) { break; } @endphp
{{ __('messages.Order Number') }} : {{ $order->id }}
{{ \Carbon\Carbon::createFromTimeString($order->created_at)->format('Y-m-d') }}
{{ __('messages.View invoice') }}

@endforeach
@else
{{ __('messages.Payments have not been received yet.') }}
@endif
{{ __('messages.homeworks') }}
@if ($homeworks && count($homeworks) > 2)
{{ __('messages.View All') }}
@endif
@if ($homeworks && count($homeworks) > 0)
@foreach ($homeworks as $homework) @php $course = $homework->session->course; @endphp
{{ $course->name }}
{{ __('messages.new') }}
{{ __('messages.show homework') }}
@endforeach
@else
{{ __('messages.There was no homework') }}
@endif