@php $thumb = $course->thumbnail; if (is_string($thumb)) { $thumb = trim($thumb); } $thumbUrl = null; if (!empty($thumb)) { if (\Illuminate\Support\Str::startsWith($thumb, ['http://', 'https://'])) { $thumbUrl = $thumb; } else { $normalized = ltrim($thumb, '/'); if (\Illuminate\Support\Str::startsWith($normalized, 'storage/')) { $normalized = \Illuminate\Support\Str::after($normalized, 'storage/'); } $thumbUrl = \Illuminate\Support\Facades\Storage::disk('public')->url($normalized); } } @endphp

Admin · Course Management

Edit Course

Update content, pricing and publishing settings for this course.

Course Details
@csrf @method('PUT')

Course Content

Keep the course name, URL and description polished.

@error('title')

{{ $message }}

@enderror

Example: computer-hardware-and-networking

@error('slug')

{{ $message }}

@enderror
@error('description')

{{ $message }}

@enderror

Pricing

Update separate admission pricing for online and offline batches.

Online Pricing
@error('online_old_price')

{{ $message }}

@enderror
@error('online_discount_price')

{{ $message }}

@enderror
Offline Pricing
@error('offline_old_price')

{{ $message }}

@enderror
@error('offline_discount_price')

{{ $message }}

@enderror