@extends('layouts.app') @section('title', 'Subscription Invoice Verifications - Admin') @push('style') @endpush @section('content')

Admin / Invoice & Transaction Details Verifications

Verify proof of purchase, invoices, and transaction details submitted by subscription owners to grant them Verified Invoice badges.

{{ $pendingCount }} Pending Review
@if(session('status')) @endif @if($errors->any()) @endif
@forelse($invoices as $inv) @php $invId = $inv['id']; $fileUrl = $inv['file_url'] ?? asset($inv['invoice_file']); $isPdf = ($inv['file_type'] ?? '') === 'pdf' || str_ends_with(strtolower($inv['invoice_file'] ?? ''), '.pdf'); $subId = $inv['shared_subscription_id']; @endphp @empty @endforelse
ID & Subscription Subscription Owner Invoice / Proof File Transaction Details Status Submitted At Actions
@if(! empty($inv['service_logo'])) {{ $inv['service_name'] }} @else {{ strtoupper(substr($inv['service_name'] ?? 'SUB', 0, 2)) }} @endif
{{ $inv['service_name'] }}
Subscription #{{ $subId }}
@if(! empty($inv['user_avatar'])) Owner @else {{ strtoupper(substr($inv['user_name'] ?? 'U', 0, 1)) }} @endif
{{ $inv['user_name'] }}
{{ $inv['user_email'] }}
@if($isPdf)
View PDF {{ $inv['file_original_name'] ?: 'invoice.pdf' }}
@else
Invoice
{{ $inv['file_original_name'] ?: 'invoice_image' }}
@endif
@if(! empty($inv['transaction_details'])) {{ $inv['transaction_details'] }} @else No additional details provided. @endif
@php $invStatus = strtolower(trim((string) ($inv['status'] ?? 'pending'))); @endphp @if(in_array($invStatus, ['approved', 'approve', 'verified'], true)) Approved @elseif(in_array($invStatus, ['rejected', 'reject', 'declined'], true)) Rejected @if(! empty($inv['admin_notes']))
Note: {{ $inv['admin_notes'] }}
@endif @else Pending Review @endif
{{ \Carbon\Carbon::parse($inv['created_at'])->format('M d, Y h:i A') }}
@if(! empty($inv['reviewed_at'])) Reviewed: {{ \Carbon\Carbon::parse($inv['reviewed_at'])->format('M d, Y') }} @endif
@if($inv['status'] !== 'approved')
@csrf
@endif @if($inv['status'] !== 'rejected') @endif
@csrf @method('DELETE')
No invoice verifications found for this filter.
@push('script') @endpush @endsection