@if (!is_null($invoice->project) && !is_null($invoice->project->client) && !is_null($invoice->project->client->clientDetails))
@php
$client = $invoice->project->client;
@endphp
@elseif(!is_null($invoice->client_id) && !is_null($invoice->clientDetails))
@php
$client = $invoice->client;
@endphp
@endif
@if ($message = Session::get('success'))
{!! $message !!}