@php
$addPaymentPermission = user()->permission('add_payments');
$deleteInvoicePermission = user()->permission('delete_invoices');
$editInvoicePermission = user()->permission('edit_invoices');
@endphp
@if (!in_array('client', user_roles()))
@if (!is_null($invoice->last_viewed))