From 5deef877bab5d23702eb5b50708ae22381888bca Mon Sep 17 00:00:00 2001 From: chris Date: Tue, 13 May 2025 11:32:21 +0200 Subject: [PATCH] Make invoices and payments searchable. Extend payments overview. --- app/Models/Payment.php | 2 +- resources/views/invoice/index.blade.php | 41 ++++++++++++++--- resources/views/payment/index.blade.php | 58 +++++++++++++++++++------ 3 files changed, 81 insertions(+), 20 deletions(-) diff --git a/app/Models/Payment.php b/app/Models/Payment.php index 69c61e4..c529193 100644 --- a/app/Models/Payment.php +++ b/app/Models/Payment.php @@ -54,7 +54,7 @@ class Payment extends Model */ public function invoice(): BelongsTo { - return $this->belongsTo(Invoice::class); + return $this->belongsTo(Invoice::class)->with(['customer']); } } diff --git a/resources/views/invoice/index.blade.php b/resources/views/invoice/index.blade.php index 69590fa..f5ecc00 100644 --- a/resources/views/invoice/index.blade.php +++ b/resources/views/invoice/index.blade.php @@ -36,11 +36,23 @@

{{ __('invoice.Existing invoices') }}

-
- - - - +
+
+ + + + +
+
+ + +
@@ -53,7 +65,7 @@
{{ __('common.Created at') }}
-