@extends('layouts.app') @section('title', 'Cobrancas - ERP-PLUS') @section('page_title', 'Cobrancas') @section('page_subtitle', 'Historico de pagamentos da empresa.') @section('content')
| ID | @if (! $target)Empresa | @endifPlano | Valor | Vencimento | Pagamento | Metodo | Status | |
|---|---|---|---|---|---|---|---|---|
| {{ $charge->id }} | @if (! $target){{ $charge->company?->name ?? '-' }} | @endif{{ $charge->subscription?->plan?->name ?? '-' }} | R$ {{ number_format((float) $charge->amount, 2, ',', '.') }} | {{ $charge->due_date?->format('d/m/Y') ?? '-' }} | {{ $charge->paid_at?->format('d/m/Y H:i') ?? '-' }} | {{ $charge->payment_method ?? '-' }} | @php $statusStyle = match ($charge->status) { 'received' => 'ok', 'pending' => 'warn', 'refunded' => 'neutral', default => '', }; @endphp {{ mb_strtoupper($charge->status) }} |
@if ($charge->invoice_url)
Fatura
@endif
@if (auth()->id() === 1 && $charge->status === 'pending')
@endif
|
Nenhuma cobranca encontrada. | ||||||||