@extends('layouts.app') @section('title', $invoice->number) @section('page', 'invoices') @section('content') @php [$l, $c] = $invoice->clientBadge(); $open = $invoice->isOpen() && ! $pendingTransfer; $bal = $invoice->balance(); @endphp All invoices

{{ $invoice->number }} {{ $pendingTransfer ? 'Transfer pending' : $l }}

{{ $invoice->project?->name }}{{ $invoice->reference ? ', '.lcfirst($invoice->reference) : '' }}

@if ($open)@endif
@include('partials.invoice-doc', ['invoice' => $invoice])

Payment

Amount due
{{ money($bal, $invoice->currency, true) }}
Due date
{{ d_long($invoice->due_date) }}
@if ($card)
Saved card
{{ $card->label() }}
@endif @foreach ($invoice->payments->where('status', 'succeeded') as $p)
Paid {{ d_short($p->paid_at) }}
{{ money($p->amount, $invoice->currency, true) }}
@endforeach
@if ($open) @elseif ($pendingTransfer)

You chose bank transfer. We'll mark this paid once it arrives, usually in 1 to 2 days.

@endif

History

    @foreach ($history as $h)
  • {{ $h->causer_id === auth()->id() ? preg_replace('/^'.preg_quote(auth()->user()->name, '/').'/', 'You', $h->description) : $h->description }}
  • @endforeach
Question about this invoice?
@if (agency()->assistant?->enabled)@endifMessage accounts
@if ($open) @endif @endsection @push('scripts') @endpush