@extends('layouts.app') @section('title', $app_setting['name'] . ' | Select Quiz Course') @section('content')

Select a course to view quizzes

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

Category: @if (strlen($course?->category?->title ?? 'N/A') > 10) {{ substr($course?->category?->title, 0, 10) . '...' }} @else {{ $course?->category?->title ?? 'N/A' }} @endif Price: @if ($app_setting['currency_position'] == 'Left') {{ $app_setting['currency_symbol'] }}{{ $course->price }} @else {{ $course->price }}{{ $app_setting['currency_symbol'] }} @endif

View Quizzes
@endforeach
{{ $courses->links() }}
@endsection