Use Laravel-Dompdf and create pdf invoices.

This commit is contained in:
2025-01-06 16:04:51 +01:00
parent fa085b7384
commit 8e0696d438
15 changed files with 872 additions and 4 deletions

View File

@@ -1,8 +1,13 @@
<x-app-layout>
<x-slot name="header">
<h2 class="font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight">
{{ __('invoice.Invoice') }} {{ $invoice->number }}
</h2>
<div class="flex flex-row">
<h2 class="w-1/2 font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight">
{{ __('invoice.Invoice') }} {{ $invoice->number }}
</h2>
<p class="w-1/2 relative">
<x-pdf-icon class="text-gray-800 absolute right-0 cursor-pointer" onclick="window.open('/invoice/{{ $invoice->id }}/download', '_blank', 'popup=true')"/>
</p>
</div>
</x-slot>
<div class="py-12">