@extends('layouts.app') @section('title', $app_setting['name'] . ' | Course List') @section('content')
@foreach ($courses as $course) @endforeach
# ID Free & Publish Course Price Instructor Status Action
{{ $loop->iteration }} {{ strtoupper($app_setting['name']) }}{{ $course->id }}
is_free ? 'checked' : '' }}> {{ $course->is_free ? 'Free' : 'Paid' }}

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

@if ($app_setting['currency_position'] == 'Left') {{ $app_setting['currency_symbol'] }}{{ $course->price ? $course->price : $course->regular_price }} @else {{ $course->price ? $course->price : $course->regular_price }}{{ $app_setting['currency_symbol'] }} @endif {{ $course->instructor->user->name }} @if ($course->trashed())
Deleted
@else
Active
@endif
@if ($course->trashed()) @else icon icon icon @endif
@endsection