@if(! $invoice->xeroInvoice)
@if(! $invoice->fully_paid_at)
@endif
@endif
@can('view crm invoices')
@endcan
@if(! $invoice->xeroInvoice)
@if($invoice->amount_paid <= 0)
@can('edit crm invoices')
@endcan
@can('delete crm invoices')
@endcan
@endif
@endif
@if($invoice->xeroInvoice)

@endif
@endscope