Merge pull request #1394 from hendryb/master

fix logo in portal.invoices.signed
This commit is contained in:
Denis Duliçi
2020-04-05 14:32:01 +03:00
committed by GitHub
2 changed files with 2 additions and 8 deletions

View File

@ -58,7 +58,7 @@ class ViewComposer extends Provider
// Add logo
View::composer(
['purchases.bills.print', 'purchases.bills.show', 'sales.invoices.print_default', 'sales.invoices.print_classic', 'sales.invoices.print_modern', 'sales.invoices.show', 'portal.invoices.show'],
['purchases.bills.print', 'purchases.bills.show', 'sales.invoices.print_default', 'sales.invoices.print_classic', 'sales.invoices.print_modern', 'sales.invoices.show', 'portal.invoices.show', 'portal.invoices.signed'],
'App\Http\ViewComposers\Logo'
);

View File

@ -20,13 +20,7 @@
<tbody>
<tr>
<th>
@if (setting('company.logo'))
<img src="{{ Storage::url(setting('company.logo')) }}" />
@else
<span class="avatar avatar-size rounded-circle bg-primary">
<i class="fas fa-building"></i>
</span>
@endif
<img src="{{ $logo }}" alt="{{ setting('company.name') }}"/>
</th>
</tr>
</tbody>