@extends('layouts.instructor')
@push('title', get_phrase('My Subjects'))
@push('meta')
@endpush
@push('css')
@endpush
@section('content')
@php
$index = 0;
@endphp
@foreach ($categories as $category)
@php
$subjects = App\Models\TutorCanTeach::where('category_id', $category->category_id)->get();
@endphp
-
{{ ++$index }}. {{ $category->category_to_tutorCategory->name }}
@if ($subjects->count() > 0)
@foreach ($subjects as $subject)
-
{{ $subject->category_to_tutorSubjects->name }}
@endforeach
@else
-
{{ get_phrase('No subjects are available.') }}
@endif
@endforeach
@endsection
@push('js')
@endpush