@extends('admin.admin_dashboard') @section('customcss') @endsection @section('admin')
@if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @php $isCompleted = $onlineClass->runtime_status === 'completed'; $canAddRecording = $onlineClass->can_add_recording; @endphp
@csrf @method('PUT')

Edit Online Class

@if($isCompleted)
This class is already completed. You should only update the recording link if needed.
@else
Recording link can be added only after the class end time.
@endif
{{-- Session --}}
{{-- Class --}}
{{-- Section --}}
{{-- Subject --}}
{{-- Teacher --}}
{{-- Platform --}}
{{-- Platform preview --}}
Selected Platform
Not Selected
{{-- Runtime Status --}}
Runtime Status
{{ ucfirst($onlineClass->runtime_status) }}
{{-- Class Date --}}
@php $classDateYmd = old('class_date', $onlineClass->class_date?->format('Y-m-d')); $classDateDisplay = $classDateYmd ? \Carbon\Carbon::parse($classDateYmd)->format('d-m-Y') : ''; @endphp
{{-- Start Time --}}
{{-- End Time --}}
{{-- Meeting Link --}}
{{-- Recording Link --}}
@if(!$canAddRecording) Class complete হওয়ার আগে recording link দেওয়া যাবে না। @endif
@endsection @section('customjs') @endsection