From 3d11ecc8824effa313795bb5c42aa63d7f46e8fa Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Wed, 24 Jun 2026 14:39:27 +0530 Subject: [PATCH] Added visitor out mail page --- app/Mail/VisitorOutMail.php | 63 +++++++++++ resources/views/mail/visitor-out.blade.php | 119 +++++++++++++++++++++ 2 files changed, 182 insertions(+) create mode 100644 app/Mail/VisitorOutMail.php create mode 100644 resources/views/mail/visitor-out.blade.php diff --git a/app/Mail/VisitorOutMail.php b/app/Mail/VisitorOutMail.php new file mode 100644 index 0000000..458b9bb --- /dev/null +++ b/app/Mail/VisitorOutMail.php @@ -0,0 +1,63 @@ +entry = $entry; + } + + /** + * Get the message envelope. + */ + public function envelope(): Envelope + { + return new Envelope( + subject: 'Visitor Out Notification', + ); + } + + /** + * Get the message content definition. + */ + public function content(): Content + { + $greeting = 'Dear Sir'; + + return new Content( + view: 'mail.visitor-out', + 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/visitor-out.blade.php b/resources/views/mail/visitor-out.blade.php new file mode 100644 index 0000000..536a8a1 --- /dev/null +++ b/resources/views/mail/visitor-out.blade.php @@ -0,0 +1,119 @@ + + + + + Visitor Out Notification + + + + + + + +
+ + + + + + + + + + + + + + + + + + +
+

+ Visitor Out Notification +

+
+ +

+ {!! $greeting !!} +

+ +

+ A visitor has checked out. Please find the details below: +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Visitor Name + + {{ $entry?->name ?? '-' }} +
+ Mobile Number + + {{ $entry?->mobile_number ?? '-' }} +
+ Company + + {{ $entry?->company ?? '-' }} +
+ Purpose of Visit + + {{ $entry?->purpose_of_visit ?? '-' }} +
+ No of Persons + + {{ $entry?->number_of_person ?? '-' }} +
+ Out Time + + {{ $entry?->out_time?->format('d-m-Y h:i A') ?? '-' }} +
+ +
+ +

+ {!! $wishes !!} +

+ +
+ © {{ date('Y') }} {{ $company }}
+ Visitor Management System +
+ +
+ + +