@extends('layouts.app') @section('title', $instructor->name) @section('page-title', $instructor->name) @section('breadcrumb', 'Instructors / Profile') @section('content')
{{ strtoupper(substr($instructor->name, 0, 1)) }}

{{ $instructor->email }}

@if($instructor->phone)

{{ $instructor->phone }}

@endif
@if($instructor->bio)

{{ $instructor->bio }}

@endif

Assign Course

@csrf
@foreach($availableCourses as $course) @endforeach

Assigned Courses ({{ $instructor->courses->count() }})

@forelse($instructor->courses as $course)
{{ $course->title }}
@csrf @method('DELETE')
@empty

No courses assigned

@endforelse

Assign Batch

@csrf
@foreach($availableBatches as $batch) @endforeach

Assigned Batches ({{ $assignedBatches->count() }})

@forelse($assignedBatches as $batch)
{{ $batch->title }} {{ ucfirst($batch->status) }} @if($batch->course)

{{ $batch->course->title }}

@endif
@empty

No batches assigned

@endforelse
@endsection