@extends('layouts.admin') @section('title', $instructor->name) @section('header', $instructor->name) @section('content')
{{ strtoupper(substr($instructor->name, 0, 1)) }}

{{ $instructor->name }}

{{ $instructor->email }}

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

@if($instructor->courses->count())
@foreach($instructor->courses as $course) @endforeach
Course Category Type Status Actions
{{ $course->title }} {{ $course->category->name ?? '—' }} {{ $course->type }} {{ $course->is_active ? 'Active' : 'Inactive' }} View
@else

No courses assigned yet.

@endif
@endsection