@extends('layouts.teacher') {{ config('app.name', 'Laravel') }} | Teacher | Chat Support @section('main-content')

Records /Chat Support

Support List
{{-- {{ dd($notes) }} --}} @if (count($notes) != 0) @foreach ($notes as $key => $note) {{-- --}} @endforeach @else @endif
# Student Name Parent Name Email Phone Replied Action
{{ $key + 1 }} {{ ucwords($note->student_first_name) }} {{ ucwords($note->student_last_name) }} {{ ucwords($note->parent_first_name) }} {{ ucwords($note->parent_last_name) }} {{ $note->parent_email }} {{ $note->parent_phone }} @if ($note->added_by == $note->teacher_id) YES @else NO @endif @if ($note->parent_id !== null) {{ $note->parent->email }} @else {{ $note->student->email }} @endif @if ($note->parent_id !== null) {{ $note->parent->phone }} @else {{ $note->student->phone }} @endif view
{{ 'No record found' }}
@endsection