diff --git a/resources/views/portal/ninja2020/components/entity-documents.blade.php b/resources/views/portal/ninja2020/components/entity-documents.blade.php new file mode 100644 index 000000000000..2a0ca6906626 --- /dev/null +++ b/resources/views/portal/ninja2020/components/entity-documents.blade.php @@ -0,0 +1,29 @@ +@if($entity->documents->count() > 0) +
+
+
+
+

{{ ctrans('texts.attachments') }}:

+ @foreach($entity->documents as $document) +
+ {{ Illuminate\Support\Str::limit($document->name, 40) }} + + + + + + + + @if(!$loop->last) + + @endif +
+ @endforeach +
+
+
+
+@endif diff --git a/resources/views/portal/ninja2020/credits/show.blade.php b/resources/views/portal/ninja2020/credits/show.blade.php index 569e1cde527f..11bfcf3d4b1a 100644 --- a/resources/views/portal/ninja2020/credits/show.blade.php +++ b/resources/views/portal/ninja2020/credits/show.blade.php @@ -7,6 +7,8 @@ @endpush @section('body') + @include('portal.ninja2020.components.entity-documents', ['entity' => $credit]) +
@endif - @if($invoice->documents->count() > 0) -
-
-
-
-

{{ ctrans('texts.attachments') }}:

- @foreach($invoice->documents as $document) -
- {{ Illuminate\Support\Str::limit($document->name, 40) }} - - - - - - - - @if(!$loop->last) - - @endif -
- @endforeach -
-
-
-
- @endif + @include('portal.ninja2020.components.entity-documents', ['entity' => $invoice])
diff --git a/resources/views/portal/ninja2020/quotes/show.blade.php b/resources/views/portal/ninja2020/quotes/show.blade.php index 070c94246c1f..380242d429f5 100644 --- a/resources/views/portal/ninja2020/quotes/show.blade.php +++ b/resources/views/portal/ninja2020/quotes/show.blade.php @@ -25,15 +25,19 @@
@endif + @include('portal.ninja2020.components.entity-documents', ['entity' => $quote]) +
+ @include('portal.ninja2020.components.entity-documents', ['entity' => $invoice]) + @if($invoice->auto_bill === 'optin' || $invoice->auto_bill === 'optout')

Auto Bill

-

Change your update bill preferences.

+

Change your update bill + preferences.