{{-- Student Information Card --}}
Student Information
{{-- Student Photo --}}
@if($update->student && $update->student->student_photo) Student Photo @else
@endif
{{-- Student Details --}}
Student Name {{ $update->student_name }}
Student ID {{ $update->student->admission_roll ?? 'N/A' }}
Class @if($update->student && $update->student->registrations->isNotEmpty()) {{ $update->student->registrations->first()->class->name ?? 'N/A' }} @else N/A @endif
Roll Number @if($update->student && $update->student->registrations->isNotEmpty()) {{ $update->student->registrations->first()->class_roll ?? 'N/A' }} @else N/A @endif
{{-- Update Information Card --}}
Update Information
Updated By Phone: {{ $update->updated_by_phone }}
IP Address: {{ $update->ip_address }}
Date & Time: {{ \Carbon\Carbon::parse($update->created_at)->timezone('Asia/Dhaka')->format('d M Y, h:i A') }}
Status: @if($update->status === 'auto_approved') Auto Approved @elseif($update->status === 'pending') Pending @elseif($update->status === 'approved') Approved @else Rejected @endif
{{-- Browser & Device Information --}}
Browser & Device Information
{{ $update->user_agent }}
{{-- Changed Information Table --}}
Changed Information (Before → After)
@php $oldData = is_array($update->old_data) ? $update->old_data : json_decode($update->old_data, true); $newData = is_array($update->new_data) ? $update->new_data : json_decode($update->new_data, true); $changedFields = is_array($update->changed_fields) ? $update->changed_fields : json_decode($update->changed_fields, true); @endphp @if(empty($changedFields))
No changes recorded.
@else
@foreach($changedFields as $index => $field) @endforeach
# Field Name Old Value New Value
{{ $index + 1 }} {{ str_replace('_', ' ', ucwords($field)) }}
@if(empty($oldData[$field])) Empty @else {{ $oldData[$field] }} @endif
@if(empty($newData[$field])) Empty @else {{ $newData[$field] }} @endif
@endif
{{-- Security Verification Alert --}}
Security Verification

এই আপডেট QR Code স্ক্যান এবং OTP verification এর মাধ্যমে সম্পন্ন হয়েছে। Phone number {{ $update->updated_by_phone }} থেকে OTP verify করে এই তথ্য পরিবর্তন করা হয়েছে।