@extends('admin.layouts.app') @section('title') {{ __('course_list') }} @endsection @section('content') @error('csv_file')
{{ $message }}
@enderror

Course List ({{ $courses->total() }})

  • @if (userCan('course.create')) @endif
Filter with name
Filter with Method
Filter with Currency
Filter with Edu Type
Filter with status
Filter with Level
Filter with University
@if (request()->all())   Clear @endif
@php $tableHeaders = [['title' => 'Course Name', 'style' => 'width: 15%;'], ['title' => 'Course Level', 'style' => 'width: 15%;'], ['title' => 'University', 'style' => 'width: 10%;'], ['title' => 'Fee', 'style' => 'width: 6%;'], ['title' => 'Duration', 'style' => 'width: 5%;'], ['title' => 'Method', 'style' => 'width: 5%;'], ['title' => 'Edu Type', 'style' => 'width: 7%;'], ['title' => 'Wrk Exp', 'style' => 'width: 6%;'], ['title' => 'Required Age', 'style' => 'width: 10%;'], ['title' => 'Date', 'style' => 'width: 10%;'], ['title' => 'Status', 'style' => 'width: 2%;'], ['title' => 'Action', 'style' => 'width: 12%;']]; @endphp @foreach ($tableHeaders as $header) @endforeach @forelse ($courses as $course) @empty @endforelse
{{ $header['title'] }}
{{ $course->id }} {{ Str::limit($course->name, 100) }} {{ $course->course_level }} {{ @$course->university->name }} {{ $course->Currency . ' ' . $course->Amount }}
₹ {{ $course->InrAmount }}
@php $color = ''; if (strtolower($course->durationUnit) == 'years') { $color = 'blue'; } elseif (strtolower($course->durationUnit) == 'weeks') { $color = 'red'; } elseif (strtolower($course->durationUnit) == 'months') { $color = 'yellow'; } else { $color = '#FFA500'; // Default color for other units } @endphp {{ $course->durationValue . ' ' . $course->durationUnit }} @php $badgeColor = strtolower($course->deliveryMethod) == 'online' ? 'badge-danger' : 'badge-secondary'; @endphp {{ $course->educationType }} Min: {{ $course->minWorkEx }} Max: {{ $course->maxWorkEx }} Min: {{ $course->minAge }} Max: {{ $course->maxAge }} Created: {{ \Carbon\Carbon::parse($course->created)->format('d/m/Y') }}
Modified: {{ \Carbon\Carbon::parse($course->modified)->format('d/m/Y') }}
{{ $course->status == 1 ? 'Active' : 'Inactive' }} @if (userCan('course.delete'))
@method('DELETE') @csrf
@endif
No Data Found.........
@if ($courses->count())
{{ $courses->links() }}
@endif
@endsection @section('style') @endsection @section('script') @endsection