From c681946b1df9f27242d03ae0dcd2342b1b11fdd3 Mon Sep 17 00:00:00 2001 From: Godfrey M Date: Wed, 23 Oct 2024 15:05:39 -0700 Subject: [PATCH] added component markdown changes --- app/Mail/CheckoutConsumableMail.php | 4 +++- resources/views/mail/markdown/checkout-consumable.blade.php | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/Mail/CheckoutConsumableMail.php b/app/Mail/CheckoutConsumableMail.php index a7f78cf3f3..3d78b0ab43 100644 --- a/app/Mail/CheckoutConsumableMail.php +++ b/app/Mail/CheckoutConsumableMail.php @@ -28,6 +28,7 @@ class CheckoutConsumableMail extends Mailable $this->note = $note; $this->target = $checkedOutTo; $this->acceptance = $acceptance; + $this->qty = $consumable->checkout_qty; $this->settings = Setting::getSettings(); } @@ -50,7 +51,7 @@ class CheckoutConsumableMail extends Mailable */ public function content(): Content { - Log::debug($this->item->getImageUrl()); + $eula = $this->item->getEula(); $req_accept = $this->item->requireAcceptance(); @@ -66,6 +67,7 @@ class CheckoutConsumableMail extends Mailable 'eula' => $eula, 'req_accept' => $req_accept, 'accept_url' => $accept_url, + 'qty' => $this->qty, ] ); } diff --git a/resources/views/mail/markdown/checkout-consumable.blade.php b/resources/views/mail/markdown/checkout-consumable.blade.php index 06e73243ca..77e68e6478 100644 --- a/resources/views/mail/markdown/checkout-consumable.blade.php +++ b/resources/views/mail/markdown/checkout-consumable.blade.php @@ -14,6 +14,9 @@ @if (isset($item->manufacturer)) | **{{ trans('general.manufacturer') }}** | {{ $item->manufacturer->name }} | @endif +@if (isset($qty)) +| **{{ trans('general.qty') }}** | {{ $qty }} | +@endif @if (isset($item->model_no)) | **{{ trans('general.model_no') }}** | {{ $item->model_no }} | @endif