@extends('layouts.teacher') {{ config('app.name', 'Laravel') }} | Teacher | Profile @include('datepicker') @section('main-content')
@if (Session::has('success')) @endif @if ($errors->any())
@endif

My Profile

@if (isset($class)) {{ 'Class Assigned : ' . $class->class }} @else {{ 'Class not assigned yet.' }} @endif

Teachers List

@foreach ($users as $user)

{{ $user->first_name }} {{ $user->last_name }}

@endforeach
{{--

Students List

--}}
Students List
@if (count($studentList) != 0) @foreach ($studentList as $key => $stdlist) @if ($stdlist->profile_photo_path) @else @endif @endforeach @else @endif
# User First Name Last Name Email Phone Status Action
{{ $key + 1 }} user user {{ ucwords($stdlist->first_name) }} {{ ucwords($stdlist->last_name) }} @if ($stdlist->parent_id !== null) {{ $stdlist->parent->email }} @else {{ $stdlist->email }} @endif @if ($stdlist->parent_id !== null) {{ $stdlist->parent->phone }} @else {{ $stdlist->phone }} @endif @if ($stdlist->parent_id !== null && $stdlist->parent) @if ($stdlist->parent->status == 'active' && $stdlist->status == 'active') Active @else In-Active @endif @else @if ($stdlist->status == 'active') Active @else In-Active @endif @endif view
{{ 'No record found' }}
@endsection