@extends('partials.app') @section('content')

Attendance Sheet

Module: {{ $module->name }}

@if (session('success'))
{{ session('success') }}
@endif
Signature of the Trainer
{{ $attendanceSignerName ? 'Last submitted by ' . $attendanceSignerName : 'No acknowledgement submitted yet.' }}
@if ($attendanceSignedAt)
{{ \Illuminate\Support\Carbon::parse($attendanceSignedAt)->format('d M Y, h:i A') }}
@endif
Tagged SOPs / Documents
@forelse($module->documents as $document)
{{ $document->doc_name }}
{{ $document->doc_number }} • {{ $document->doc_type }}
Open
@empty

No SOPs or documents tagged to this training yet.

@endforelse
@csrf
@forelse($users as $user) @php $isPresent = ($user->pivot->attendance_status ?? '') === 'present'; @endphp @empty @endforelse
S.No. Name of the Trainee Corporate Id Email Attendance Current Status
{{ $users->firstItem() + $loop->index }} {{ $user->name }} {{ $user->corporate_id ?? '-' }} {{ $user->email ?? '-' }} {{ $isPresent ? 'Present' : 'Absent' }}
No trainees found for this module.
@if ($users->count())
@endif
{{ $users->appends(request()->query())->onEachSide(1)->links('pagination::bootstrap-4') }}
@endsection