added component markdown changes

This commit is contained in:
Godfrey M 2024-10-23 15:05:39 -07:00
parent 257d25bd9e
commit c681946b1d
2 changed files with 6 additions and 1 deletions

View file

@ -28,6 +28,7 @@ class CheckoutConsumableMail extends Mailable
$this->note = $note; $this->note = $note;
$this->target = $checkedOutTo; $this->target = $checkedOutTo;
$this->acceptance = $acceptance; $this->acceptance = $acceptance;
$this->qty = $consumable->checkout_qty;
$this->settings = Setting::getSettings(); $this->settings = Setting::getSettings();
} }
@ -50,7 +51,7 @@ class CheckoutConsumableMail extends Mailable
*/ */
public function content(): Content public function content(): Content
{ {
Log::debug($this->item->getImageUrl());
$eula = $this->item->getEula(); $eula = $this->item->getEula();
$req_accept = $this->item->requireAcceptance(); $req_accept = $this->item->requireAcceptance();
@ -66,6 +67,7 @@ class CheckoutConsumableMail extends Mailable
'eula' => $eula, 'eula' => $eula,
'req_accept' => $req_accept, 'req_accept' => $req_accept,
'accept_url' => $accept_url, 'accept_url' => $accept_url,
'qty' => $this->qty,
] ]
); );
} }

View file

@ -14,6 +14,9 @@
@if (isset($item->manufacturer)) @if (isset($item->manufacturer))
| **{{ trans('general.manufacturer') }}** | {{ $item->manufacturer->name }} | | **{{ trans('general.manufacturer') }}** | {{ $item->manufacturer->name }} |
@endif @endif
@if (isset($qty))
| **{{ trans('general.qty') }}** | {{ $qty }} |
@endif
@if (isset($item->model_no)) @if (isset($item->model_no))
| **{{ trans('general.model_no') }}** | {{ $item->model_no }} | | **{{ trans('general.model_no') }}** | {{ $item->model_no }} |
@endif @endif