@extends('layouts.app') @section('title', $app_setting['name'] . ' | Course List') @section('content')
@foreach ($courses as $course) @endforeach
# ID Course Category Views Price Instructor Status Action
{{ $loop->iteration }} {{ strtoupper($app_setting['name']) }}{{ $course->id }}

@if (strlen($course->title) > 50) {{ substr($course->title, 0, 50) . '...' }} @else {{ $course->title }} @endif

{{ $course->category?->title ?? 'N/A' }} {{ $course->view_count }} @if ($app_setting['currency_position'] == 'Left') {{ $app_setting['currency_symbol'] }}{{ $course->price }} @else {{ $course->price }}{{ $app_setting['currency_symbol'] }} @endif {{ $course->instructor->user->name }} @if ($course->trashed())
Deleted
@else
Active
@endif
@if ($course->trashed()) @else @endif
@endsection