From 172fa16813aa90cf3228ce61aaaecdab3b024fe6 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Fri, 4 Sep 2026 14:50:34 +0530 Subject: [PATCH] Added panel box alert mail pages --- app/Mail/PanelBoxNotOkAlert.php | 70 ++++ .../mail/panel-box-not-ok-alert.blade.php | 310 ++++++++++++++++++ 2 files changed, 380 insertions(+) create mode 100644 app/Mail/PanelBoxNotOkAlert.php create mode 100644 resources/views/mail/panel-box-not-ok-alert.blade.php diff --git a/app/Mail/PanelBoxNotOkAlert.php b/app/Mail/PanelBoxNotOkAlert.php new file mode 100644 index 0000000..8e09e27 --- /dev/null +++ b/app/Mail/PanelBoxNotOkAlert.php @@ -0,0 +1,70 @@ +plant = $plant; + $this->itemCode = $itemCode; + $this->serialNumber = $serialNumber; + $this->supplier = $supplier; + $this->characteristics = $characteristics; + } + + /** + * Get the message envelope. + */ + public function envelope(): Envelope + { + return new Envelope( + subject: 'Panel Box Not Ok Alert', + ); + } + + /** + * Get the message content definition. + */ + public function content(): Content + { + $greeting = 'Dear Sir'; + return new Content( + view: 'mail.panel-box-not-ok-alert', + with: [ + 'company' => 'CRI Digital Manufacturing Solutions', + 'greeting' => $greeting, + 'wishes' => 'Thanks & Regards,
CRI Digital Manufacturing Solutions', + ], + ); + } + + /** + * Get the attachments for the message. + * + * @return array + */ + public function attachments(): array + { + return []; + } +} diff --git a/resources/views/mail/panel-box-not-ok-alert.blade.php b/resources/views/mail/panel-box-not-ok-alert.blade.php new file mode 100644 index 0000000..d57bf94 --- /dev/null +++ b/resources/views/mail/panel-box-not-ok-alert.blade.php @@ -0,0 +1,310 @@ + + + + + + +Panel Box Not OK Alert + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + +
+
+ Panel Box Inspection Alert +
+ +
+ Inspection result: NOT OK +
+
+ ⚠ +
+ +
+ +
+ A panel box inspection has been marked as + Not OK. + Please review the inspection details below. +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Inspection Details +
+ Plant + + {{ $plant }} +
+ Panel Box Code + + {{ $itemCode }} +
+ Serial Number + + {{ $serialNumber }} +
+ Supplier Number + + {{ $supplier }} +
+ +
+ +
+ Characteristics +
+ + + + + + + + + + + + + + + + + + @foreach(($characteristics ?? []) as $index => $characteristic) + + + + + + + + + + + + + @endforeach + + + +
+ S.No + + Characteristic Name + + Spec Value + + Observed Value +
+ {{ $index + 1 }} + + {{ $characteristic['characteristic_name'] }} + + {{ $characteristic['lower'] }} + - + {{ $characteristic['upper'] }} + + {{ $characteristic['observed_value'] }} +
+ +
+ + + + + + + +
+ + Action Required: + Please review the above inspection results + and take the necessary corrective action. + +
+ +
+ +
+ This is an automated notification from the + Panel Box Inspection System. +
+ +
+ Please do not reply to this email. +
+ +
+ +
+ + +