@extends('mainlayout.layout') @section('title', config('app.name') . ' | Approval Queue') @section('topbar-search', 'enabled') @section('content')
SuperAdmin

Approval queue

Review sensitive publication and onboarding requests.

@if(session('message'))
{{ session('message') }}
@endif
Clear
@forelse($approvals as $approval) @empty@endforelse
RequestSubjectStatusRequestedDecision
{{ ucfirst(str_replace('_', ' ', $approval->type)) }}{{ substr($approval->public_id, 0, 8) }}@if($approval->subject instanceof \App\Models\Property){{ $approval->subject->name }}@else{{ class_basename($approval->subject_type) }} #{{ $approval->subject_id }}@endif{{ ucfirst($approval->status) }}{{ $approval->created_at->diffForHumans() }}@if($approval->status === 'pending')
@csrf @method('PATCH')
@csrf @method('PATCH')
@else{{ $approval->decision_note ?: 'Decision recorded' }}@endif

No approval requests

New requests will appear here.

{{ $approvals->links() }}
@endsection