@extends('layouts/contentNavbarLayout') @section('title', 'Employee Delete Requests') @section('content')

Employee Delete Requests

Review and manage employee account deletion requests

Total Requests: {{ $deleteRequests->total() }}

{{ $stats['pending'] }}

Pending

{{ $stats['accepted'] }}

Accepted

{{ $stats['refused'] }}

Refused

{{ $stats['total'] }}

Total
Reset
Delete Requests
@forelse ($deleteRequests as $request) @empty @endforelse
Employee Company Reason Status Requested Actions
{{ strtoupper(substr($request->employee->name ?? 'N', 0, 1)) }}
{{ $request->employee->name ?? 'N/A' }}
{{ $request->employee->email ?? 'N/A' }}
{{ $request->employee->company->name ?? 'N/A' }} {{ $request->reason }} @php $statusClasses = [ 'pending' => 'bg-warning', 'accepted' => 'bg-success', 'refused' => 'bg-danger' ]; @endphp {{ ucfirst($request->status) }} {{ $request->created_at->format('M d, Y') }}
{{ $request->created_at->format('h:i A') }}
No delete requests found

There are no delete requests matching your criteria.

@if($deleteRequests->hasPages())
{{ $deleteRequests->appends(request()->query())->links() }}
@endif
@endsection