@extends('layouts.app') @section('title', $app_setting['name'] . ' | Enrollment List') @section('content')
@foreach ($enrollments as $enrollment) @endforeach
# Enroll ID Student Course Progress Course Price Last Activity Status Action
{{ $loop->iteration }} {{ $enrollment->id }} {{ $enrollment->user?->name ?? 'N/A' }}

@if (strlen($enrollment->course?->title) > 30) {{ substr($enrollment->course?->title, 0, 30) . '...' }} @else {{ $enrollment->course?->title ?? 'N/A' }} @endif

{{ $enrollment->progress }}%
@if ($app_setting['currency_position'] == 'Left') {{ $app_setting['currency_symbol'] }}{{ $enrollment->course_price }} @else {{ $enrollment->course_price }}{{ $app_setting['currency_symbol'] }} @endif {{ $enrollment->last_activity }} @if ($enrollment->trashed())
Deleted
@else
Active
@endif
@if ($enrollment->trashed()) @else @endif
@endsection