{{-- A white-label client's monthly PropertyLab AI statement. Rendered once when the statement is ISSUED and stored (MediaService, collection ai_gateway_statement): it is the bill the client was sent, so it is never regenerated from live data. Lines are what the client called the work — never a model, never a provider. --}}
| Statement | {{ $statement->number }} | Billed to | {{ $client->name }} |
| Period | {{ $statement->period->format('F Y') }} | Issued | {{ ($statement->issued_at ?? now())->format('d M Y') }} |
| Rate | {{ $statement->currency }} {{ number_format((float) $statement->price_per_credit, 4) }} per credit | Status | {{ \Src\AiGateway\AiGatewayStatement::STATUSES[$statement->status]['name'] ?? '' }} |
| Feature | Requests | Usage | Credits | Amount ({{ $statement->currency }}) |
|---|---|---|---|---|
| {{ $line->label }} | {{ number_format($line->requests) }} | @if($line->kind === \Src\AiGateway\AiGatewayStatementLine::KIND_CHAT) {{ number_format($line->input_tokens + $line->output_tokens) }} tokens @else {{ number_format((float) $line->units, 2) }} {{ \Src\AiGateway\AiGatewayStatementLine::KINDS[$line->kind]['unit'] ?? '' }} @endif | {{ number_format((float) $line->credits, 2) }} | {{ number_format((float) $line->amount, 2) }} |
| No billable usage this month. | ||||
| Total | {{ number_format($statement->requests) }} | {{ number_format((float) $statement->credits, 2) }} | {{ $statement->currency }} {{ number_format((float) $statement->amount, 2) }} | |