@scope('cell_pipeline_stage', $invoice) @if($invoice->pipelineStage) @endif @endscope @scope('cell_order', $invoice) @if($invoice->order) {{ $invoice->order->order_id }} @endif @endscope @scope('cell_overdue_by', $invoice) @if(! $invoice->fully_paid_at && $invoice->due_date && abs($invoice->due_date->diffInDays()) > 0 && $invoice->due_date < \Carbon\Carbon::now()->timezone($this->timezone)) {{ $invoice->due_date->diffForHumans() }} @endif @endscope @scope('cell_sent', $invoice) @if($invoice->sent == 1) @endif @endscope @scope('actions', $invoice)
@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