@extends('teacher.teacher_dashboard') @section('admin')
{{-- Breadcrumb --}}
{{-- Header / Tools --}}

Homework Templates

{{-- Success Message --}} @if(session('success'))
{{ session('success') }}
@endif {{-- Templates Table --}}
All Templates
@if($templates->count() > 0)
@foreach($templates as $key => $template) @endforeach
# Template Name Type Content Preview Created Actions
{{ $templates->firstItem() + $key }} {{ $template->name }} @if($template->type == 'title') Title @else Description @endif
{{ $template->content }}
{{ $template->created_at->format('d M, Y') }}
@csrf @method('DELETE')
{{-- Pagination --}}

Showing {{ $templates->firstItem() }} to {{ $templates->lastItem() }} of {{ $templates->total() }} templates

{{ $templates->links() }}
@else

No templates found. Create your first template to get started!

Create Template
@endif
@endsection