@extends('layouts.auth') @section('content')

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

General Information

Name: {{ $user->name }}
Account Status: @if ($user->status == 1) Active @else Disabled @endif
Email: {{ $user->email }}
Phone Number: {{ $user->phone_number }}

@if ($user->certificates->count() > 0)

{{ $user->name }} Certificates

@if ($user->certificates->count() > 0) @foreach ($user->certificates as $key => $certificate) @endforeach @else @endif
# Certification Number Name Course Action
{{ $key + 1 }} {{ $certificate->certification_number }} {{ $certificate->user->name }} {{ $certificate->course->title }}
download
@csrf
No Certificate Found
@endif @if ($user->role->name == 'Instructor' || $user->role->name == 'Teacher')
Instructor Allocations
@if ($user->teacherAllocations->count() > 0) @foreach ($user->teacherAllocations as $key => $teacherAllocation) @endforeach
# Course Assigned Date Assigned By Action
{{ $key + 1 }} {{ $teacherAllocation->course->title }} {{ $teacherAllocation->assigned_date }} {{ $teacherAllocation->assignedBy->name }}
@csrf
@else
No Allocation Found.
@endif
@endif @if ($user->role->name == 'Student')
Enrollments
@if ($user->enrollments->count() > 0) @foreach ($user->enrollments as $key => $enrollment) @endforeach
# Course Paid Amount Remaining Amount Enrollment Status Payment Status Enrolled By Generate Certificate Action
{{ $key + 1 }} {{ $enrollment->course->title }} {{ $enrollment->paid_amount }} {{ $enrollment->remaining_amount }} {{ $enrollment->enrollmentStatus->name }} {{ $enrollment->paymentStatus->name }} {{ $enrollment->enrolledBy->name }}
@csrf
Edit
@csrf
@else
No Enrollment Found.
@endif
Schedules
@if ($user->schedules->count() > 0) @foreach ($user->schedules as $key => $schedule) @endforeach
# Day Start Time End Time Action
{{ $key + 1 }} {{ $schedule->day }} {{ $schedule->start_time }} {{ $schedule->end_time }}
Edit
@csrf
@else
No Schedule Found.
@endif
User Checklists
@foreach ($user->enrollments as $enrollment)
{{ $enrollment->course->title }}
@foreach ($enrollment->course->phases as $phase)

{{ $phase->title }}

@foreach ($phase->chapters as $chapter)
{{ $chapter->title }}
@foreach ($chapter->checklists as $checklist)
{{ $checklist->title }}
    @foreach ($checklist->checklistItems as $checklistItem)
  • {{ $checklistItem->title }} @php $userChecklistItem = $checklistItem->userChecklistItems()->where('user_id', $user->id)->first(); @endphp @if ($userChecklistItem)
    Completed
    @csrf
    @else
    Not Completed
    @csrf
    @endif
  • @endforeach
@endforeach
@endforeach
@endforeach
@endforeach @endif
@endsection