@extends('patent::layouts.master') @section('title', 'Patent Transaction Report - ' . $patent->aipt_ref) @section('content')

Patent Transaction Report - {{ $patent->aipt_ref }}

Patent Information

AIPT Reference: {{ $patent->aipt_ref }}
Client Reference: {{ $patent->client_ref ?? 'N/A' }}
Application Title: {{ $patent->application_title ?? 'N/A' }}
Status: {{ $patent->application_status ?? 'N/A' }}
PCT Number: {{ $patent->pct_no ?? 'N/A' }}
PCT Date: {{ $patent->pct_date ? \Carbon\Carbon::parse($patent->pct_date)->format('M d, Y') : 'N/A' }}
Created: {{ $patent->created_at ? $patent->created_at->format('M d, Y') : 'N/A' }}
Last Updated: {{ $patent->updated_at ? $patent->updated_at->format('M d, Y') : 'N/A' }}

Filters

Total Transactions

{{ number_format($patentStats['total_transactions']) }}

All transactions

Total Amount

${{ number_format($patentStats['total_amount'], 2) }}

All time value

Paid Amount

${{ number_format($patentStats['paid_amount'], 2) }}

Completed payments

Pending Amount

${{ number_format($patentStats['pending_amount'], 2) }}

Awaiting payment

Transaction Timeline

First Transaction

{{ $patentStats['first_transaction'] ? \Carbon\Carbon::parse($patentStats['first_transaction'])->format('M d, Y') : 'N/A' }}


Last Transaction

{{ $patentStats['last_transaction'] ? \Carbon\Carbon::parse($patentStats['last_transaction'])->format('M d, Y') : 'N/A' }}

Average Transaction

${{ number_format($patentStats['average_transaction'], 2) }}

Mean transaction value

Payment Status

${{ number_format($patentStats['paid_amount'], 2) }}

Paid

${{ number_format($patentStats['pending_amount'], 2) }}

Pending

Transactions

@if($transactions->count() > 0)
@foreach($transactions as $transaction) @endforeach
Reference Type Country Amount (USD) Amount (Original) Currency Status Date Actions
{{ $transaction->reference_no }} {{ $transaction->transactionType->name ?? 'N/A' }} {{ $transaction->country ?? 'N/A' }} ${{ number_format($transaction->amount_usd, 2) }} {{ number_format($transaction->amount, 2) }} {{ $transaction->currency }} {{ ucfirst($transaction->status) }} {{ $transaction->transaction_date ? $transaction->transaction_date->format('M d, Y') : 'N/A' }}
@else
No transactions found

This patent has no transactions matching the current filters.

Add Transaction
@endif
@endsection @push('styles') @endpush