Fixed missing document totals relation then add payment button action..

This commit is contained in:
Cüneyt Şentürk
2023-06-19 15:50:23 +03:00
parent 1d7b1404a3
commit 962d678156
5 changed files with 63 additions and 29 deletions

View File

@@ -34,6 +34,10 @@
@if ($document->status == 'draft')
<x-documents.show.message type="status" background-color="bg-red-100" text-color="text-red-600" message="{!! trans($textStatusMessage) !!}" />
@endif
@if (! $document->totals->count())
<x-documents.show.message type="status" background-color="bg-red-100" text-color="text-red-600" message="{!! trans('invoices.messages.totals_required', ['type' => $type]) !!}" />
@endif
@endif
@stack('status_message_end')