@extends('admin.layouts.app') @section('page-title', 'Profile Update Requests') @section('content')
| # | User | Requested Changes | Status | Requested At | Actions |
|---|---|---|---|---|---|
| {{ ($currentPage - 1) * $perPage + $index + 1 }} |
{{ $user->customer_name }} {{ $user->email }} ID: {{ $user->customer_id }} |
@foreach($newData as $key => $newValue)
@php
$oldValue = $user->$key ?? '—';
$changed = $oldValue != $newValue;
@endphp
{{ ucfirst(str_replace('_',' ', $key)) }}:
@endforeach
Old: {{ $oldValue }} New: {{ $newValue ?? '—' }} |
@if($req->status == 'pending') Pending @elseif($req->status == 'approved') Approved @else Rejected @endif | {{ $req->created_at->format('d M Y, h:i A') }} | @if($req->status == 'pending') Approve Reject @else Completed @endif |