@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)) {{$invoice->client->name}} @lang('app.viewedOn') {{$invoice->last_viewed->timezone($settings->timezone)->translatedFormat($settings->date_format)}} @lang('app.at') {{$invoice->last_viewed->timezone($settings->timezone)->translatedFormat($settings->time_format)}} @lang('app.usingIpAddress'):{{$invoice->ip_address}} @endif @endif @if(!is_null($invoice->client_id) && !is_null($invoice->clientDetails)) @php $client = $invoice->client; @endphp @elseif ( !is_null($invoice->project) && !is_null($invoice->project->client) && !is_null($invoice->project->client->clientDetails)) @php $client = $invoice->project->client; @endphp @endif @if (!$invoice->send_status && $invoice->status != 'canceled' && $invoice->amountDue() > 0) @lang('messages.unsentInvoiceInfo') @endif
@if ($message = Session::get('success'))
{!! $message !!}