File "LeaveRequest.php"

Full Path: /home/isoftco/public_html/hrm/app/Http/LeaveRequest.php
File size: 711 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace App\Mail;

use App\Traits\Settings;

class LeaveRequest extends BaseMail
{
    use Settings;
    public $data;

    /**
     * Create a new message instance.
     *
     * @return void
     */
    public function __construct($data)
    {
        parent::__construct();
        $this->data = $data;
        $this->setMailConfigs();
    }

    /**
     * Build the message.
     *
     * @return $this
     */
    public function build()
    {
        return $this->replyTo($this->data['replyTo'])
            ->subject(__('email.leaveRequest', ['company' => $this->data['active_company']->company_name]))
            ->view('emails.front.leave_request')
            ->with($this->data);
    }
}