@extends('admin.admin_dashboard') @section('admin')

QR Code Based Profile Updates

Filter Options
Reset
All QR Updates {{ $updates->total() }} Records
@if($updates->isEmpty())
কোনো QR-based update পাওয়া যায়নি।
@else
@foreach($updates as $index => $update) @endforeach
# Student Name Phone Number Date & Time IP Address Changed Fields Status Action
{{ $updates->firstItem() + $index }} {{ $update->student_name }} @if($update->student)
ID: {{ $update->student->admission_roll }} @endif
{{ $update->updated_by_phone ?? 'N/A' }}
{{ \Carbon\Carbon::parse($update->created_at)->timezone('Asia/Dhaka')->format('d M Y') }}
{{ \Carbon\Carbon::parse($update->created_at)->timezone('Asia/Dhaka')->format('h:i A') }}
{{ $update->ip_address }} @if(!empty($update->changed_fields)) @php $fields = is_array($update->changed_fields) ? $update->changed_fields : json_decode($update->changed_fields, true); $displayFields = array_slice($fields, 0, 3); $remaining = count($fields) - 3; @endphp
@foreach($displayFields as $field) {{ str_replace('_', ' ', ucfirst($field)) }} @endforeach @if($remaining > 0) +{{ $remaining }} more @endif
@else - @endif
@if($update->status === 'auto_approved') Auto Approved @elseif($update->status === 'pending') Pending @elseif($update->status === 'approved') Approved @else Rejected @endif
Showing {{ $updates->firstItem() }} to {{ $updates->lastItem() }} of {{ $updates->total() }} entries
{{ $updates->appends(request()->query())->links() }}
@endif
@endsection @section('customjs') @endsection