@extends('layouts.master') @section('title', 'Course Index') @section('parentPageTitle', 'All Course') @section('css-link') @include('layouts.include.form.form_css') @stop @section('page-style') @stop @section('content')
| @translate(S / L) | @translate(Title) | @translate(Category) | @translate(Info) | @if (\Illuminate\Support\Facades\Auth::user()->user_type == 'Admin')@translate(Published) | @endif@translate(Enrolled Students) | @if (\Illuminate\Support\Facades\Auth::user()->user_type != 'Admin')@translate(Action) | @endif|
|---|---|---|---|---|---|---|---|
| {{ $loop->index + 1 + ($courses->currentPage() - 1) * $courses->perPage() }} |
{{ $course->title }}{{ $course->level }} {{ $course->relationBetweenInstructorUser->name }}
{{ $course->is_published == true ? 'Published' : 'Wait for Admin Approval' }}
@if ($course->is_discount == true)
{{ formatPrice($course->discount_price) }}
|
{{ $course->relationBetweenCategory->name }} |
@translate(Classes)- {{ $course->classesAll->count() }}
@php
$total_count = 0;
@endphp
@foreach ($course->classesAll as $item)
@endforeach
@translate(Contents)- {{ $total_count }} |
@if (\Illuminate\Support\Facades\Auth::user()->user_type == 'Admin')
@if (App\Models\Enrollment::where('course_id', $course->id)->count() > 0)
@translate(Enrolled) |
@else
is_published == true ? 'checked' : null }} />
|
@endif
@endif
{{ $s = App\Models\Enrollment::where('course_id', $course->id)->count() }} | @if (\Illuminate\Support\Facades\Auth::user()->user_type != 'Admin')
|
@endif
|
|||||||